/* ============================================================================
   auth.html — login / signup / account page (/auth.html)
   Extracted from the inline <style> block (dissection refactor).
   base.css (loaded later via bars.html) wins all specificity ties.
   ========================================================================== */

/* :root alias block dropped: base.css :7-20 provides --bg-surface,
   --bg-surface-2, --border, --text-primary, --text-secondary, --accent,
   --radius-lg and --error identically (and already won the tie). */

.auth-container {
    max-width: 400px;
    margin: 60px auto;
    padding: 20px;
}

.auth-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 4px 20px oklch(0.00% 0.000 0.0 / 0.05);
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* ... (Form Styles) ... */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-surface-2);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--accent);
}

.btn-full {
    width: 100%;
    margin-top: 10px;
}

/* base.css .btn-primary supplies the accent background/color/glow shadow and
   wins those ties; the drift here is padding, 20px radius, font, transition.
   (Buttons use bare .btn-primary without .btn.) */
.btn-primary {
    background: var(--global-accent);
    color: white;
    padding: 12px 24px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s, transform 0.1s;
}

.btn-primary:active {
    transform: scale(0.96);
    opacity: 0.9;
}

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

.auth-switch a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.error-msg {
    color: var(--error);
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-align: center;
    display: none;
    background: oklch(62.80% 0.258 29.2 / 0.05);
    padding: 8px;
    border-radius: 6px;
}

/* .hidden dropped — base.css:617 provides the identical rule. */

/* NEW STYLES FOR THEME SELECTOR */
.theme-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: left;
}

.theme-section h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.theme-select {
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    margin-bottom: 12px;
    cursor: pointer;
}

/* Install Button Styles */
.install-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.install-section h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 1px;
    font-weight: 800;
}

.install-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 16px;
    background: var(--accent);
    color: white;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.install-btn:active {
    transform: scale(0.96);
    opacity: 0.9;
}

.install-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* iOS Install Modal */
.ios-install-modal {
    position: fixed;
    inset: 0;
    background: oklch(0.00% 0.000 0.0 / 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.ios-install-modal.show {
    display: flex;
}

.ios-install-content {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.ios-install-content h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.ios-install-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.ios-install-steps {
    text-align: left;
    margin: 20px 0;
    padding: 20px;
    background: var(--bg-surface-2);
    border-radius: 12px;
}

.ios-install-steps li {
    margin: 12px 0;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.ios-close-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
}
