.authPage {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    padding: var(--sp-16);
    position: relative;
    overflow: hidden;
}

.blobLeft {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--peach-200);
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    opacity: 0.15;
    top: -100px;
    left: -100px;
    animation: blobFloat 12s ease-in-out infinite;
}

.blobRight {
    position: absolute;
    width: 350px;
    height: 350px;
    background: var(--sage-200);
    border-radius: 58% 42% 30% 70% / 55% 45% 55% 45%;
    opacity: 0.12;
    bottom: -80px;
    right: -80px;
    animation: blobFloat 15s ease-in-out infinite reverse;
}

.authContainer {
    width: 100%;
    max-width: 420px;
    z-index: 1;
}

.logoSection {
    text-align: center;
    margin-bottom: var(--sp-32);
}

.logoIcon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--peach-500), var(--sage-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto var(--sp-16);
    box-shadow: 0 8px 24px rgba(224, 122, 95, 0.2);
}

.logoTitle {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: var(--sp-4);
}

.logoSub {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.formCard {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--sp-32);
    box-shadow: var(--shadow-lg);
}

.formTitle {
    font-family: var(--font-display);
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: var(--sp-24);
}

.form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-16);
}

.formGroup {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.formLabel {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.formInput {
    width: 100%;
    padding: var(--sp-12) var(--sp-16);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.formInput:focus {
    border-color: var(--peach-500);
    box-shadow: 0 0 0 3px var(--peach-glow);
}

.submitBtn {
    width: 100%;
    padding: var(--sp-16);
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--peach-500), var(--sage-500));
    border: none;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    font-family: var(--font-body);
    margin-top: var(--sp-8);
}

.submitBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(224, 122, 95, 0.25);
}

.error {
    padding: var(--sp-12);
    background: #FFEBEE;
    border: 1px solid #FFCDD2;
    border-radius: var(--radius-md);
    color: var(--danger);
    font-size: 0.85rem;
    text-align: center;
    animation: fadeIn var(--duration-normal) var(--ease-out);
}

.success {
    padding: var(--sp-12);
    background: #E8F5E9;
    border: 1px solid #C8E6C9;
    border-radius: var(--radius-md);
    color: var(--success);
    font-size: 0.85rem;
    text-align: center;
    animation: fadeIn var(--duration-normal) var(--ease-out);
}

.switchText {
    text-align: center;
    margin-top: var(--sp-20);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.switchLink {
    color: var(--peach-500);
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 0.9rem;
    font-family: var(--font-body);
    text-decoration: none;
}

.switchLink:hover {
    text-decoration: underline;
}

.forgotLink {
    text-align: right;
    font-size: 0.8rem;
}

.demoInfo {
    margin-top: var(--sp-16);
    padding: var(--sp-12);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

.demoInfo strong {
    color: var(--text-secondary);
}

/* Đường kẻ ngăn cách */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #888;
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.divider:not(:empty)::before {
    margin-right: .75em;
}

.divider:not(:empty)::after {
    margin-left: .75em;
}

.googleBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #444;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.googleBtn:hover {
    background: #f8f9fa;
    border-color: #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.googleBtn svg {
    flex-shrink: 0;
}

.auth-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    animation: slideDown 0.4s ease-out;
}

.alert-danger {
    background-color: #FFF5F5;
    border: 1px solid #FEB2B2;
    color: #C53030;
}

.alert-success {
    background-color: #F0FFF4;
    border: 1px solid #9AE6B4;
    color: #276749;
}

.alert-icon {
    font-size: 1.1rem;
}

.alert-text {
    font-weight: 500;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}