/* Auth Pages Styles */
body.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    position: relative;
    padding: 2rem;
}

body.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.95), rgba(13, 27, 42, 0.8));
}

.auth-container {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 3.5rem 3rem;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}

/* Register Container Override */
.auth-container.register-container {
    max-width: 800px;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 1.5rem;
}

/* Responsive grid for mobile */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header .logo {
    justify-content: center;
    margin-bottom: 1rem;
}

.auth-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
}

.auth-header p {
    color: var(--text-muted);
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

.form-control {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(13, 27, 42, 0.15);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--bg-bright);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230d1b2a%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat, repeat;
    background-position: right .7em top 50%, 0 0;
    background-size: .65em auto, 100%;
}

.auth-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: #fff;
    padding: 1.2rem;
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.auth-btn:hover {
    background-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 700;
    border-bottom: 1px solid var(--accent-gold);
    padding-bottom: 2px;
}

.auth-footer a:hover {
    color: var(--accent-gold);
}
/* Animated Royal Flash Messages */
.flash-message {
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDownFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.flash-success {
    background-color: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--primary-color);
}
.flash-success::before {
    content: '✧';
    color: var(--accent-gold);
    font-size: 1.4rem;
    line-height: 1;
}

.flash-error {
    background-color: rgba(139, 0, 0, 0.04);
    border: 1px solid rgba(139, 0, 0, 0.2);
    color: #8b0000;
}
.flash-error::before {
    content: '⚠';
    color: #8b0000;
    font-size: 1.3rem;
    line-height: 1;
}

@keyframes slideDownFade {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Password Rules Instructions */
.password-rules {
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0 0.5rem;
}

.password-rules p {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: var(--primary-color);
}

.password-rules ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
}

.password-rules ul li {
    position: relative;
    padding-left: 1rem;
    color: rgba(13, 27, 42, 0.5);
    transition: all 0.3s ease;
}

.password-rules ul li::before {
    content: '✓';
    color: rgba(13, 27, 42, 0.3);
    font-weight: bold;
    position: absolute;
    left: 0;
    transition: color 0.3s ease;
}

.password-rules ul li.valid {
    color: rgba(13, 27, 42, 0.9);
}

.password-rules ul li.valid::before {
    color: #10b981; /* Premium Emerald Green */
}

