/* ============================================================
   pages/auth.css — login, register, forgot password, reset
   ============================================================ */

/* ── Full page layout ── */
.site-main {
    padding-top: 0;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 480px 1fr;
}

.auth-page-single {
    grid-template-columns: 1fr;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--bg);
    position: relative;
}

.auth-page-single::before {
    content: '';
    position: fixed;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,92,53,0.08), transparent 70%);
    top: -100px; left: -100px;
    pointer-events: none;
}

/* ── Auth card ── */
.auth-card {
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 48px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.auth-card-single {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    min-height: auto;
    width: 100%;
    max-width: 440px;
    padding: 40px;
}

/* ── Logo ── */
.auth-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    margin-bottom: 40px;
    text-decoration: none;
}

.auth-logo-mark {
    width: 32px; height: 32px;
    background: var(--grad-primary);
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ── Heading ── */
.auth-heading {
    margin-bottom: 28px;
}

.auth-heading h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.auth-heading p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ── Tabs ── */
.auth-tabs {
    display: flex;
    gap: 4px;
    background: var(--surface-2);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 28px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 9px;
    border-radius: 7px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
    text-decoration: none;
}

.auth-tab:hover { color: var(--text); }

.auth-tab.active {
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ── Google button ── */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.btn-google:hover {
    border-color: var(--border-hover);
    background: var(--surface-3);
}

/* ── Divider ── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--text-faint);
    font-size: 0.78rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── Form ── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.auth-label-row .form-label { margin-bottom: 0; }

.auth-forgot {
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: color 0.15s;
}
.auth-forgot:hover { color: var(--accent-orange); }

/* Password field */
.password-wrap {
    position: relative;
}

.password-wrap .form-input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.5;
    transition: opacity 0.15s;
    padding: 0;
    line-height: 1;
}
.password-toggle:hover { opacity: 1; }

/* Remember me checkbox */
.auth-remember {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface-2);
    flex-shrink: 0;
    display: grid;
    place-items: center;
    transition: all 0.15s;
}

.checkbox-label input:checked + .checkbox-custom {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '✓';
    font-size: 0.7rem;
    color: white;
    font-weight: 700;
}

/* Submit button */
.auth-submit {
    width: 100%;
    justify-content: center;
    padding: 13px;
    font-size: 0.95rem;
    border-radius: 10px;
}

/* Terms */
.auth-terms {
    font-size: 0.75rem;
    color: var(--text-faint);
    text-align: center;
    margin-top: 14px;
    line-height: 1.5;
}

.auth-terms a {
    color: var(--text-muted);
    transition: color 0.15s;
}
.auth-terms a:hover { color: var(--text); }

/* Back link */
.auth-back-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.15s;
}
.auth-back-link:hover { color: var(--text); }

/* Success states */
.auth-success {
    text-align: center;
    padding: 20px 0;
}

.auth-success-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.auth-success h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.auth-success p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 340px;
    margin: 0 auto;
}

/* ── Right decorative panel ── */
.auth-panel {
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px;
    position: relative;
    overflow: hidden;
}

.auth-panel::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,92,53,0.1), transparent 70%);
    top: -100px; right: -100px;
    pointer-events: none;
}

.auth-panel::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(168,85,247,0.08), transparent 70%);
    bottom: -100px; left: -50px;
    pointer-events: none;
}

.auth-panel-inner {
    position: relative;
    z-index: 1;
    max-width: 400px;
}

.auth-panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255,92,53,0.1);
    border: 1px solid rgba(255,92,53,0.2);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-orange);
    margin-bottom: 24px;
}

.auth-panel h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.auth-panel p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.auth-panel-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-panel-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .auth-page {
        grid-template-columns: 1fr;
    }
    .auth-panel { display: none; }
    .auth-card  { min-height: auto; padding: 40px 32px; }
}

@media (max-width: 480px) {
    .auth-card  { padding: 32px 24px; }
    .auth-card-single { padding: 28px 20px; }
}

