/* ==========================================================
   auth.css — Auth screen, auth forms, password toggle
   ========================================================== */

/* ============ Auth Screen ============ */

.auth-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-primary);
}

.auth-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
    color: var(--accent-purple);
}

.auth-logo .logo-mark {
    display: inline-block;
    margin-bottom: 8px;
}

.auth-logo h1 {
    font-size: 1.6rem;
    margin-top: 8px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 400;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.auth-field input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--accent-purple);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 42px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--text-primary);
}

.auth-btn {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    font-size: 1rem;
    border-radius: 8px;
}

.auth-error {
    color: var(--accent-red);
    font-size: 0.85rem;
    margin-top: 12px;
    text-align: center;
    min-height: 20px;
}

.auth-success {
    color: var(--accent-green);
    font-size: 0.85rem;
    margin-top: 8px;
    text-align: center;
    min-height: 20px;
}

/* Auth form switching */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

/* Links under forms */
.auth-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: 16px;
    flex-wrap: wrap;
}

.auth-link {
    background: none;
    border: none;
    color: var(--accent-blue-light);
    font-family: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.auth-link:hover {
    color: var(--accent-purple);
    text-decoration: underline;
}

.auth-links-sep {
    width: 1px;
    height: 14px;
    background: var(--border-color);
}

.auth-form-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
    text-align: center;
    line-height: 1.5;
}
