@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@400;600;700;800&display=swap");

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    min-height: 100vh;
    width: 100vw;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #0d47a1 0%,
        #1565c0 35%,
        #1976d2 65%,
        #283593 100%
    );
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── DECORATIVE SHAPES ── */
.shape {
    position: fixed;
    pointer-events: none;
}

.shape-1 {
    width: 320px;
    height: 320px;
    border: 2.5px solid rgba(255, 255, 255, 0.07);
    border-radius: 60px;
    top: -80px;
    left: 80px;
    transform: rotate(20deg);
}

.shape-2 {
    width: 220px;
    height: 220px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 40px;
    bottom: -40px;
    left: 260px;
    transform: rotate(-15deg);
}

.shape-3 {
    width: 180px;
    height: 180px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 36px;
    top: 40px;
    right: 320px;
    transform: rotate(30deg);
}

.shape-4 {
    width: 400px;
    height: 400px;
    border: 2px solid rgba(255, 255, 255, 0.04);
    border-radius: 80px;
    bottom: -160px;
    right: -80px;
    transform: rotate(12deg);
}

.shape-5 {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    top: 30%;
    left: 38%;
    transform: rotate(20deg);
}

.blob {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: rgba(100, 180, 255, 0.12);
    top: -200px;
    left: -100px;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: rgba(120, 80, 255, 0.1);
    bottom: -100px;
    right: 200px;
}

/* ── MAIN LAYOUT ── */
.page-wrap {
    width: 100%;
    max-width: 1100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;
    position: relative;
    z-index: 1;
    gap: 60px;
}

/* ── LEFT PANEL ── */
.left-panel {
    flex: 1;
    color: white;
}

.school-tag {
    font-family: "Sora", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.school-tag::before {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 99px;
}

.left-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.left-logo img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.left-welcome {
    font-family: "Sora", sans-serif;
    font-size: clamp(42px, 5.5vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: white;
}

.left-welcome span {
    display: block;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.42em;
    font-weight: 600;
    font-family: "Plus Jakarta Sans", sans-serif;
    letter-spacing: 0;
    margin-top: 8px;
}

.left-divider {
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 99px;
    margin-bottom: 20px;
}

.left-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    max-width: 300px;
    margin-bottom: 32px;
}

.btn-learn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    color: white;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 99px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-learn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ── FORM CARD ── */
.form-card {
    width: 380px;
    flex-shrink: 0;
    background: #f3effc;
    border: 1px solid rgba(180, 160, 230, 0.3);
    border-radius: 28px;
    padding: 40px 40px 36px;
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.7);
    color: #1a1a2e;
}

.card-title-wrap {
    text-align: center;
    margin-bottom: 28px;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: white;
    border: 1px solid rgba(180, 160, 230, 0.35);
    border-radius: 99px;
    padding: 5px 14px;
    font-size: 10px;
    font-weight: 700;
    color: #5b3fc0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: "Sora", sans-serif;
    margin-bottom: 14px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #69f0ae;
    box-shadow: 0 0 6px #69f0ae;
}

.card-title {
    font-family: "Sora", sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.title-underline {
    display: inline-block;
    width: 36px;
    height: 3px;
    background: linear-gradient(90deg, #60b4ff, #a78bfa);
    border-radius: 99px;
    margin-top: 2px;
}

/* ── FIELDS ── */
.field-group {
    margin-bottom: 14px;
}

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 7px;
}

.field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.field-wrap .field-input {
    padding-right: 44px;
}

.field-input {
    width: 100%;
    background: white;
    border: 1.5px solid #ddd6f5;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 500;
    color: #1a1a2e;
    outline: none;
    transition: all 0.2s;
}

.field-input::placeholder {
    color: #bbb5cc;
    font-weight: 400;
}

.field-input:focus {
    border-color: #7c5cbf;
    background: white;
    box-shadow: 0 0 0 3px rgba(124, 92, 191, 0.1);
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.eye-icon {
    width: 17px;
    height: 17px;
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.2s;
}

.toggle-password:hover .eye-icon {
    opacity: 0.6;
}

/* ── REMEMBER ── */
.remember-row {
    display: flex;
    align-items: center;
    margin: 6px 0 20px;
    gap: 8px;
}

.remember-check {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid #d4cce8;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    flex-shrink: 0;
}

.remember-check:checked {
    background: #7c5cbf;
    border-color: #7c5cbf;
}

.remember-check:checked::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 0;
    width: 5px;
    height: 9px;
    border: 1.5px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.remember-text {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

/* ── SUBMIT BUTTON ── */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #7c5cbf, #5b3fc0);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    font-family: "Plus Jakarta Sans", sans-serif;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 8px 24px rgba(91, 63, 192, 0.3);
    letter-spacing: 0.3px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(91, 63, 192, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ── DIVIDER ── */
.card-divider {
    border: none;
    border-top: 1px solid #ede9fb;
    margin: 20px 0 16px;
}

/* ── OTHER PORTALS ── */
.other-portals {
    text-align: center;
    font-size: 12px;
    color: #9ba3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.other-portals a {
    color: #5b3fc0;
    font-weight: 700;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 15px;
    transition: background 0.2s;
}

.other-portals a:hover {
    background: #ede9fb;
}

/* ── TOAST ── */
.toast-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 14px;
    animation:
        toastIn 0.3s ease both,
        toastOut 0.4s ease 3.5s forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

/* ── BACK LINK ── */
.back-link {
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    text-decoration: none;
    margin-top: 14px;
    transition: color 0.2s;
    font-weight: 500;
}

.back-link:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
    body {
        overflow: auto;
        align-items: flex-start;
    }
    .page-wrap {
        flex-direction: column;
        padding: 48px 24px;
        gap: 32px;
        min-height: auto;
    }
    .form-card {
        width: 100%;
    }
    .left-welcome {
        font-size: 40px;
    }
}
