:root {
    --bg-dark: #0a0a0c;
    --panel-bg: #111114;
    --panel-border: #1e1e24;
    --text-primary: #ffffff;
    --text-secondary: #8b8b93;
    --accent-red: #ff3333;
    --accent-hover: #ff4d4d;
    --success: #00e676;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --font-stack: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-stack);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.auth-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.auth-card h2 {
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.switch-view {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.switch-view a {
    color: var(--text-primary);
    text-decoration: underline;
}

.error-msg {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255,61,0,0.1);
    border: 1px solid rgba(255,61,0,0.3);
    border-radius: var(--radius-sm);
    color: #ff3d00;
    font-size: 0.85rem;
    text-align: center;
}


/* --- Loading Overlay --- */
.auth-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader h2 {
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.waveform {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 40px;
}

.waveform span {
    display: block;
    width: 6px;
    background: var(--primary);
    border-radius: 4px;
    animation: wave 1s ease-in-out infinite;
}

.waveform span:nth-child(1) { height: 10px; animation-delay: 0.0s; }
.waveform span:nth-child(2) { height: 25px; animation-delay: 0.1s; }
.waveform span:nth-child(3) { height: 40px; animation-delay: 0.2s; }
.waveform span:nth-child(4) { height: 25px; animation-delay: 0.3s; }
.waveform span:nth-child(5) { height: 10px; animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.4); }
}

/* --- Continue View --- */
.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #818cf8);
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.05) !important;
    color: white !important;
}

/* --- Loading Overlay --- */
.auth-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader h2 {
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.waveform {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 40px;
}

.waveform span {
    display: block;
    width: 6px;
    background: var(--primary);
    border-radius: 4px;
    animation: wave 1s ease-in-out infinite;
}

.waveform span:nth-child(1) { height: 10px; animation-delay: 0.0s; }
.waveform span:nth-child(2) { height: 25px; animation-delay: 0.1s; }
.waveform span:nth-child(3) { height: 40px; animation-delay: 0.2s; }
.waveform span:nth-child(4) { height: 25px; animation-delay: 0.3s; }
.waveform span:nth-child(5) { height: 10px; animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.4); }
}
