.auth-section {
    padding: 64px 0 96px;
    position: relative;
    z-index: 1;
}

.auth-grid {
    display: grid;
    grid-template-columns:1fr .95fr;
    gap: 32px;
    align-items: center;
}

.auth-intro {
    max-width: 720px;
}

.auth-title {
    margin-top: 24px;
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    line-height: 1.06;
    letter-spacing: -.03em;
    font-weight: 600;
    color: #fff;
}

.auth-text {
    margin-top: 24px;
    font-size: 18px;
    line-height: 1.85;
    color: rgba(255, 255, 255, .70);
    max-width: 680px;
}

.auth-benefits {
    margin-top: 32px;
    display: grid;
    gap: 16px;
}

.auth-benefit-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .05);
    border-radius: 24px;
    padding: 18px 20px;
    backdrop-filter: blur(18px);
}

.auth-benefit-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(139, 92, 246, .25), rgba(217, 70, 239, .20));
    flex-shrink: 0;
}

.auth-benefit-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.auth-benefit-card p {
    margin-top: 6px;
    color: rgba(255, 255, 255, .64);
    line-height: 1.7;
    font-size: 14px;
}

.auth-card {
    border-radius: 32px;
    border: 1px solid rgba(196, 181, 253, .15);
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .04));
    padding: 28px 30px 32px;
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-glow);
}

.auth-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.preview-title {
    margin-top: 4px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.status-pill {
    border-radius: 999px;
    border: 1px solid rgba(196, 181, 253, .2);
    background: rgba(139, 92, 246, .10);
    color: #ddd6fe;
    font-size: 12px;
    padding: 6px 12px;
    white-space: nowrap;
}

.auth-form {
    margin-top: 22px;
}

.field {
    display: block;
}

.field + .field {
    margin-top: 18px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, .65);
}

.auth-field-gap {
    margin-top: 18px;
}

.form-row-2 {
    display: grid;
    grid-template-columns:repeat(2, 1fr);
    gap: 20px;
}

.input,
.textarea,
.select {
    width: 100%;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, .40);
    color: #fff;
    padding: 14px 16px;
    outline: none;
    transition: var(--transition);
}

.textarea {
    min-height: 120px;
    resize: vertical;
    border-radius: 24px;
}

.input::placeholder,
.textarea::placeholder {
    color: rgba(255, 255, 255, .30);
}

.input:focus,
.textarea:focus,
.select:focus {
    border-color: rgba(168, 85, 247, .40);
}

.auth-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.auth-submit {
    width: 100%;
    margin-top: 24px;
    padding: 16px 24px;
    border-radius: 999px;
    font-weight: 600;
}

.auth-bottom {
    margin-top: 18px;
    text-align: center;
    color: rgba(255, 255, 255, .60);
    font-size: 14px;
}

.auth-bottom a,
.auth-link {
    color: #ddd6fe;
    font-weight: 500;
    transition: var(--transition);
}

.auth-bottom a:hover,
.auth-link:hover,
.footer-links a:hover {
    color: #fff;
}

.small-muted {
    color: rgba(255, 255, 255, .5);
    font-size: 14px;
}

.nav-cta:hover {
    background: rgba(139, 92, 246, .18);
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, .10);
}

.mobile-menu.open {
    display: block;
    animation: pageFade .25s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: linear-gradient(90deg, rgba(139, 92, 246, .28), rgba(217, 70, 239, .22));
    border-color: rgba(196, 181, 253, .24);
    color: #fff;
}

.input-wrap,
.input-with-icon {
    position: relative;
}

.input.password-input,
.input-with-icon .input {
    padding-right: 58px;
}

.toggle-password,
.icon-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-password:hover,
.icon-btn:hover {
    background: rgba(255, 255, 255, .10);
}

.remember-row,
.remember-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .68);
    font-size: 14px;
}

.remember-row input,
.remember-wrap input {
    accent-color: var(--violet-2);
    width: 16px;
    height: 16px;
}

body.page-teacher-login .auth-title {
    max-width: 720px;
    font-size: clamp(2.8rem, 5vw, 4.6rem);
}


/*student login dropdown*/

.custom-select {
    position: relative;
    width: 100%;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.40);
    border: 1px solid var(--line);
    color: #fff;
    padding: 14px 16px;
    cursor: pointer;
}

.selected {
    pointer-events: none;
}

.search-input {
    display: none;
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    box-sizing: border-box;
}

.custom-select.active .search-input {
    display: block;
}

.options-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.80);
    border-radius: 0 0 18px 18px;
    border: 1px solid rgba(168, 85, 247, 0.40);
    margin-top: 4px;
    list-style: none;
    padding: 0;
    display: none;
    z-index: 1000;
}

.custom-select.active .options-list {
    display: block;
}

.options-list li {
    padding: 10px 16px;
    cursor: pointer;
}

.options-list li:hover {
    background: rgba(168, 85, 247, 0.40);
}

/*student login dropdown*/

@media (max-width: 991px) {
    .auth-grid {
        grid-template-columns:1fr;
    }

    .auth-intro {
        max-width: none;
    }
}

@media (max-width: 767px) {
    .auth-section {
        padding: 48px 0 80px;
    }

    .auth-card {
        padding: 22px 20px 24px;
    }

    .auth-title {
        font-size: clamp(2.4rem, 11vw, 3.8rem);
    }

    .auth-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-row-2 {
        grid-template-columns:1fr;
    }
}
