.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 180px);
    /* adjust based on nav & footer */
    padding: 2rem;
    background: linear-gradient(135deg, var(--background) 0%, #E0E7FF 100%);
}

.auth-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 500px;
    animation: scaleIn 0.5s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.auth-card h2 {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #F8FAFC;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    background: white;
}

.auth-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.auth-links a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.auth-links a:hover {
    color: var(--primary-hover);
}

.error-msg {
    color: #EF4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.mb-1 {
    margin-bottom: 1rem !important;
}

.mb-2 {
    margin-bottom: 2rem !important;
}

.forgot-pw-wrap {
    text-align: right;
    margin-top: 0.5rem;
}

.forgot-pw-link {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
}

.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #E2E8F0;
    text-decoration: none;
    color: #374151;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    background: #fff;
    transition: all 0.3s ease;
}

.btn-google:hover {
    background: #F8FAFC;
}

/* Forgot Password Extra */
.auth-title-emoji {
    margin-bottom: 1rem;
    font-weight: 800;
    color: #1E293B;
}

.auth-subtitle {
    color: #64748B;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.auth-alert-success {
    background: #D1FAE5;
    color: #065F46;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-alert-error {
    background: #FEE2E2;
    color: #991B1B;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-input-error {
    color: #EF4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
}

.auth-back-link {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.auth-back-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Register Success Area */
.register-success-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #F8FAFC;
}

.rs-card {
    background: white;
    padding: 3.5rem;
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 550px;
    width: 100%;
    border: 1px solid #E2E8F0;
    position: relative;
    overflow: hidden;
}

.rs-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #4F46E5, #06B6D4);
}

.rs-check-icon {
    width: 72px;
    height: 72px;
    background: #DEF7EC;
    color: #046C4E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.rs-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 0.5rem;
}

.rs-subtitle {
    color: #64748B;
}

.rs-credentials-box {
    background: #F1F5F9;
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
    border: 1px solid #E2E8F0;
}

.rs-credential-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.rs-credential-item:last-child {
    margin-bottom: 0;
}

.rs-credential-label {
    color: #64748B;
    font-weight: 500;
}

.rs-credential-value {
    color: #1E293B;
    font-weight: 700;
}

.rs-note-alert {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #E2E8F0;
    font-size: 0.85rem;
    color: #DC2626;
    font-weight: 600;
}

.rs-btn-login {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #1E293B;
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    margin-top: 1rem;
}

.rs-btn-login:hover {
    background: #334155;
    transform: translateY(-2px);
}

.rs-privacy-notice {
    font-size: 0.8rem;
    color: #94A3B8;
    margin-top: 1.5rem;
    line-height: 1.4;
}