:root {
    --auth-bg: #0a0a0a;
    --auth-card-bg: rgba(20, 20, 20, 0.8);
    --auth-accent: #C9A25D;
    --auth-accent-hover: #b38e4d;
    --auth-text: #ffffff;
    --auth-text-muted: #a0a0a0;
    --auth-border: rgba(201, 162, 93, 0.2);
    --auth-input-bg: rgba(255, 255, 255, 0.05);
}

#auth-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--auth-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
}

.auth-bg-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.auth-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 162, 93, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    animation: float 20s infinite alternate;
}

.auth-blob-1 { top: -100px; right: -100px; }
.auth-blob-2 { bottom: -150px; left: -150px; animation-delay: -5s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--auth-card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--auth-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo .logo-icon {
    width: 48px;
    height: 48px;
    background: var(--auth-accent);
    color: #000;
    font-weight: 800;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin: 0 auto 12px;
}

.auth-logo h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--auth-text);
    margin: 0;
}

.auth-logo p {
    color: var(--auth-text-muted);
    font-size: 14px;
    margin-top: 8px;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: var(--auth-input-bg);
    padding: 4px;
    border-radius: 12px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--auth-text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: var(--auth-accent);
    color: #000;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-field label {
    font-size: 13px;
    font-weight: 500;
    color: var(--auth-text-muted);
}

.auth-field input {
    background: var(--auth-input-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--auth-text);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--auth-accent);
    background: rgba(255, 255, 255, 0.08);
}

.auth-btn {
    background: var(--auth-accent);
    color: #000;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.auth-btn:hover {
    background: var(--auth-accent-hover);
    transform: translateY(-1px);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-forgot-password {
    text-align: right;
    margin-top: -8px;
}

.auth-forgot-password a {
    color: var(--auth-text-muted);
    font-size: 13px;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.auth-forgot-password a:hover {
    color: var(--auth-accent);
}

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

.auth-footer a {
    color: var(--auth-accent);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-error {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.2);
    color: #ff3b30;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    display: none;
    margin-bottom: 20px;
}

/* Hide main app initially */
#app-root {
    display: none;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--auth-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11000;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(201, 162, 93, 0.1);
    border-top-color: var(--auth-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* Logout Modal Refinements */
.logout-icon svg {
    filter: drop-shadow(0 0 10px rgba(229, 83, 83, 0.3));
}

#modal-logout .modal-card {
    background: var(--auth-card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--auth-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

#modal-logout h2 {
    color: var(--auth-text);
    font-family: 'Outfit', sans-serif;
}

#modal-logout p {
    color: var(--auth-text-muted);
}

#modal-logout .btn-outline {
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--auth-text);
}

#modal-logout .btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}
