/* ===== Auth Pages ===== */
html:has(.auth-body) {
    height: 100%;
    background: #1a3a6b;
}

.auth-body {
    background: linear-gradient(135deg, #1a3a6b 0%, #1a56a0 60%, #2878cc 100%);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px 60px;
    overflow-y: auto;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-logo {
    text-align: center;
    color: #fff;
    margin-bottom: 28px;
}
.auth-logo img { display: block; margin: 0 auto; height: 44px; width: auto; filter: brightness(0) invert(1); }
.auth-logo p  { font-size: 0.85rem; opacity: 0.8; margin-top: 10px; }

.auth-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.auth-card h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 22px;
    color: #222;
}

.auth-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.875rem;
    margin-bottom: 18px;
    line-height: 1.5;
}

.auth-card .form-group { margin-bottom: 18px; }
.auth-card .form-group label {
    display: block; font-weight: 600; font-size: 0.875rem;
    margin-bottom: 6px; color: #374151;
}
/* 16px+ on inputs avoids iOS Safari auto-zoom on focus (sub-16px triggers zoom) */
.auth-card .form-group input {
    width: 100%; padding: 10px 12px;
    border: 1.5px solid #d1d5db; border-radius: 8px;
    font-size: 16px; outline: none; transition: border-color 0.2s;
    box-sizing: border-box;
}
.auth-card .form-group input:focus {
    border-color: #1a56a0;
    box-shadow: 0 0 0 3px rgba(26,86,160,0.12);
}

.password-wrap { position: relative; }
.password-wrap input { padding-right: 42px; }
.toggle-pw {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; color: #9ca3af;
    padding: 4px; line-height: 0;
}
.toggle-pw:hover { color: #555; }

.auth-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 0.875rem;
    color: #6b7280;
}
.auth-footer a { color: #1a56a0; text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

.auth-consent { margin-bottom: 18px; }
.auth-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #374151;
    cursor: pointer;
    font-weight: 400;
}
.auth-consent-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #1a56a0;
}
.auth-consent-label a {
    color: #1a56a0;
    font-weight: 600;
    text-decoration: none;
}
.auth-consent-label a:hover { text-decoration: underline; }

/* ===== Google OAuth Button ===== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #9ca3af;
    font-size: 0.82rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 18px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.btn-google:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ===== Plan Preview (register page) ===== */
.plan-preview {
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 18px 20px;
    margin-top: 16px;
    color: #fff;
}
.plan-preview-title {
    font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
    opacity: 0.7; margin-bottom: 6px;
}
.plan-preview-note {
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 12px;
}
.plan-list { display: flex; flex-direction: column; gap: 6px; }
.plan-item {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px; padding: 7px 12px;
    font-size: 0.85rem;
}
.plan-item.current { background: rgba(255,255,255,0.25); font-weight: 600; }
.plan-name  { flex: 1; }
.plan-limit { color: rgba(255,255,255,0.8); font-size: 0.8rem; }
.plan-price { font-weight: 700; min-width: 55px; text-align: right; }
