:root {
    --purple-darkest: #0D0A1A;
    --purple-darker: #1A1030;
    --purple-mid: #4A2D7A;
    --purple-main: #6B3FA0;
    --gold-main: #C9A84C;
    --gold-light: #D4B96A;
    --gold-gradient: linear-gradient(135deg, #C9A84C 0%, #E0CC8A 25%, #D4B96A 50%, #C9A84C 75%, #8B7030 100%);
    --gold-text: linear-gradient(135deg, #D4B96A 0%, #E8D5A0 50%, #C9A84C 100%);
    --text-light: #E8E0F0;
    --text-muted: #A89CB8;
    --danger: #E85D75;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--purple-darkest);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.auth-container {
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 2;
}

.auth-bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}
.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--purple-main) 0%, transparent 70%);
    top: -150px;
    right: -150px;
    opacity: 0.35;
    animation: floatOrb 15s ease-in-out infinite;
}
.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201,168,76,0.3) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    opacity: 0.4;
    animation: floatOrb 20s ease-in-out infinite reverse;
}
@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, -30px); }
}

.auth-card {
    background: rgba(26, 16, 48, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: cardFadeIn 0.6s ease;
}
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-logo-link {
    display: block;
    text-align: center;
    margin-bottom: 2rem;
}
.auth-logo {
    max-width: 220px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(201, 168, 76, 0.3));
}

.auth-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    text-align: center;
    background: var(--gold-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}
.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.form-group label {
    font-size: 0.75rem;
    color: var(--gold-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}
.form-group input {
    padding: 0.9rem 1.2rem;
    background: rgba(13,10,26,0.6);
    border: 1px solid rgba(107,63,160,0.3);
    border-radius: 12px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.form-group input:focus {
    outline: none;
    border-color: var(--gold-main);
    background: rgba(13,10,26,0.9);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.form-error {
    color: var(--danger);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    min-height: 1.5rem;
    text-align: center;
}

.form-success {
    color: var(--gold-light);
    font-size: 0.9rem;
    text-align: center;
    padding: 0.5rem 0;
    min-height: 1.5rem;
    line-height: 1.5;
}

.auth-btn {
    padding: 1rem 2rem;
    background: var(--gold-gradient);
    color: var(--purple-darkest);
    border: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
}
.auth-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201,168,76,0.3);
}
.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-links {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.auth-links a {
    color: var(--gold-light);
    text-decoration: none;
    transition: color 0.3s ease;
}
.auth-links a:hover {
    color: var(--gold-main);
}
.divider-dot {
    margin: 0 0.8rem;
    color: var(--purple-mid);
}

.invalid-box {
    text-align: center;
    padding: 2rem 1rem;
}
.invalid-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.invalid-box p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }
    .auth-title {
        font-size: 1.5rem;
    }
    .auth-logo {
        max-width: 180px;
    }
}