/* ─── Auth Pages — Ive × Rams ─── */

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

.auth-card {
    width: 100%;
    max-width: 380px;
    background: var(--bg-card, rgba(255,255,255,0.72));
    backdrop-filter: blur(40px) saturate(1.8);
    -webkit-backdrop-filter: blur(40px) saturate(1.8);
    border-radius: 20px;
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 0 0 0.5px rgba(0,0,0,0.08),
                0 8px 40px rgba(0,0,0,0.06);
}

@media (prefers-color-scheme: dark) {
    .auth-card {
        background: rgba(28,28,30,0.82);
        box-shadow: 0 0 0 0.5px rgba(255,255,255,0.06),
                    0 8px 40px rgba(0,0,0,0.35);
    }
}

/* ─── Header ─── */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.auth-logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text-primary, #000);
}

.auth-subtitle {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-secondary, #86868b);
    letter-spacing: -0.01em;
}

/* ─── Fields ─── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-field label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary, #86868b);
}

.auth-field .form-input {
    width: 100%;
    padding: 0.7rem 0.85rem;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.95rem;
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-radius: 10px;
    background: var(--bg-input, rgba(0,0,0,0.03));
    color: var(--text-primary, #000);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.auth-field .form-input:focus {
    border-color: var(--accent, #007AFF);
    box-shadow: 0 0 0 3px rgba(0,122,255,0.15);
}

@media (prefers-color-scheme: dark) {
    .auth-field .form-input {
        background: rgba(255,255,255,0.06);
        border-color: rgba(255,255,255,0.08);
        color: #f5f5f7;
    }
}

/* ─── Remember Me ─── */
.auth-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    font-size: 0.82rem;
    color: var(--text-secondary, #86868b);
}

.auth-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent, #007AFF);
    border-radius: 4px;
    cursor: pointer;
}

/* ─── Submit Button ─── */
.auth-btn {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border: none;
    border-radius: 12px;
    background: var(--accent, #007AFF);
    color: #fff;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.08s ease;
}

.auth-btn:hover { opacity: 0.88; }
.auth-btn:active { transform: scale(0.97); opacity: 0.78; }

/* ─── Errors / Success ─── */
.auth-errors {
    margin-bottom: 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: rgba(255,59,48,0.08);
    border: 1px solid rgba(255,59,48,0.18);
}

.auth-error {
    font-size: 0.82rem;
    color: #FF3B30;
    line-height: 1.4;
}

.auth-success {
    margin-bottom: 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: rgba(52,199,89,0.08);
    border: 1px solid rgba(52,199,89,0.18);
    font-size: 0.82rem;
    color: #34C759;
    line-height: 1.4;
}

/* ─── Footer ─── */
.auth-footer {
    margin-top: 2rem;
    font-size: 0.72rem;
    color: var(--text-tertiary, #aeaeb2);
    letter-spacing: -0.01em;
}

/* ─── Install Page Extras ─── */
.auth-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary, #86868b);
    margin-top: 0.6rem;
}

.auth-divider {
    border: none;
    border-top: 1px solid var(--border, rgba(0,0,0,0.06));
    margin: 0.5rem 0;
}

@media (prefers-color-scheme: dark) {
    .auth-divider {
        border-top-color: rgba(255,255,255,0.06);
    }
}

.auth-success a {
    color: var(--accent, #007AFF);
    text-decoration: none;
    font-weight: 600;
}

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