.auth-page {
    background: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.portal-nav {
    background: white !important;
    position: relative !important;
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-split-card {
    display: flex;
    width: 100%;
    max-width: 1000px;
    background: white;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--border-soft);
}

.auth-visual {
    flex: 1;
    background: var(--dark);
    padding: 60px;
    color: white;
    display: flex;
    align-items: center;
}

.auth-visual h2 {
    font-size: 38px;
    margin: 20px 0;
    line-height: 1.2;
}

.auth-visual p {
    color: var(--slate-light);
    line-height: 1.6;
    margin-bottom: 30px;
}

.auth-feature-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
}

.auth-form-area {
    flex: 1.2;
    padding: 60px;
    background: white;
}

.auth-box h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--slate);
    margin-bottom: 32px;
    font-size: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--slate);
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--emerald);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.w-100 {
    width: 100%;
    margin-top: 10px;
}

.toggle-text {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--slate);
}

.toggle-text a,
.auth-link-row a {
    color: var(--emerald);
    text-decoration: none;
    font-weight: 700;
}

.auth-link-row {
    margin-top: -2px;
    margin-bottom: 14px;
    text-align: right;
    font-size: 13px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-password {
    position: absolute;
    right: 15px;
    cursor: pointer;
    font-size: 18px !important;
    color: #94a3b8;
    user-select: none;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: var(--emerald);
}

.password-criteria {
    margin-top: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
}

.password-criteria p {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--slate);
    margin-bottom: 12px;
}

.password-criteria ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.password-criteria li {
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.crit-invalid {
    color: #94a3b8;
}

.crit-invalid::before {
    content: 'radio_button_unchecked';
    font-family: 'Material Icons';
    font-size: 14px;
}

.crit-valid {
    color: var(--emerald);
}

.crit-valid::before {
    content: 'check_circle';
    font-family: 'Material Icons';
    font-size: 14px;
}

.alert {
    padding: 18px;
    border-radius: 14px;
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    transition: transform 0.3s ease, opacity 0.6s ease !important;
}

.alert:hover {
    transform: translateY(-2px);
}

.success-alert {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.error-alert {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.1);
}

.section-enter {
    animation: fadeUpIn 0.25s ease;
}

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

@media (max-width: 850px) {
    .auth-split-card {
        flex-direction: column;
    }

    .auth-visual {
        display: none;
    }

    .auth-form-area {
        padding: 40px 30px;
    }

    .password-criteria ul {
        grid-template-columns: 1fr;
    }
}

