/* ============================================================================
   desta-auth.css — shared styles for guest auth views
   Used by: layouts/guest.blade.php and all auth/*.blade.php
   ============================================================================ */

/* ── Auth shell: split-panel layout ──────────────────────────────────────── */
html, body { height: 100%; margin: 0; padding: 0; }

.auth-shell { display: flex; min-height: 100vh; }

/* Left branding panel */
.auth-brand {
    display: none;
    width: 420px;
    flex-shrink: 0;
    background: var(--dark);
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 44px;
    position: relative;
    overflow: hidden;
}
.auth-brand::before {
    content: ''; position: absolute;
    top: -120px; right: -120px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(255,164,0,0.18) 0%, transparent 70%);
    pointer-events: none;
}
.auth-brand::after {
    content: ''; position: absolute;
    bottom: -80px; left: -80px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(255,164,0,0.10) 0%, transparent 70%);
    pointer-events: none;
}

.auth-brand-logo { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.auth-brand-badge {
    width: 44px; height: 44px;
    background: var(--accent); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 22px; color: var(--dark); flex-shrink: 0;
}
.auth-brand-name { font-size: 22px; font-weight: 800; color: white; letter-spacing: -0.5px; }
.auth-brand-name span { color: var(--accent); }

.auth-brand-body { position: relative; z-index: 1; }
.auth-brand-tagline { font-size: 28px; font-weight: 700; color: white; line-height: 1.3; letter-spacing: -0.5px; margin-bottom: 16px; }
.auth-brand-tagline em { font-style: normal; color: var(--accent); }
.auth-brand-desc { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.7; }

.auth-brand-features { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.auth-brand-features li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.55); }
.auth-feature-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; opacity: 0.8; }

.auth-brand-footer { position: relative; z-index: 1; font-size: 11px; color: rgba(255,255,255,0.2); }

/* Selected-plan brand panel (register) */
.auth-brand-plan-pill {
    background: rgba(255,164,0,0.12);
    border: 1px solid rgba(255,164,0,0.35);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 18px;
}
.auth-brand-plan-price { font-size: 36px; font-weight: 900; color: white; letter-spacing: -1.5px; margin-bottom: 4px; }
.auth-brand-plan-price-unit { font-size: 15px; color: rgba(255,255,255,0.55); font-weight: 500; }
.auth-brand-plan-trial { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 26px; }
.auth-brand-features-label { font-size: 11px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; margin-bottom: 14px; }
.auth-brand-tenant-note {
    margin-top: 26px; padding: 12px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}
.auth-brand-tenant-note strong { color: white; }

/* Right form panel */
.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f6fa;
    padding: 32px 24px;
}
.auth-form-box { width: 100%; max-width: 400px; }

/* Mobile logo (when brand panel hidden) */
.auth-mobile-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 28px; }
.auth-mobile-badge {
    width: 40px; height: 40px;
    background: var(--accent); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 20px; color: var(--dark);
}
.auth-mobile-name { font-size: 22px; font-weight: 800; color: var(--dark); letter-spacing: -0.5px; }
.auth-mobile-name span { color: var(--accent); }

@media (min-width: 900px) {
    .auth-brand { display: flex; }
    .auth-mobile-logo { display: none; }
}

/* ── Form primitives ─────────────────────────────────────────────────────── */
.auth-heading { margin-bottom: 28px; }
.auth-heading h1 { font-size: 22px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.3px; margin-bottom: 4px; }
.auth-heading p { font-size: 13px; color: var(--text-secondary); }

.auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.09);
    padding: 32px;
    border: 1px solid var(--border-light);
}
.auth-card-compact { padding: 20px; }

.auth-input {
    display: block; width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}
.auth-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,164,0,0.13); }
.auth-input.is-invalid { border-color: #ef4444; background: #fff8f8; }
.auth-input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.12); }
.auth-input:read-only { background: #f8f9fa; color: var(--text-secondary); cursor: default; }

.auth-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 7px; }
.auth-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.auth-label-row .auth-label { margin-bottom: 0; }

.auth-field { margin-bottom: 18px; }
.auth-field-tight { margin-bottom: 22px; }
.auth-field-error { font-size: 12px; color: #ef4444; margin-top: 5px; }
.auth-hint { font-size: 12px; color: var(--text-secondary); margin-top: 5px; }

.auth-btn {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; width: 100%;
    padding: 12px 20px;
    background: var(--accent);
    color: var(--dark);
    font-size: 14px; font-weight: 700;
    font-family: 'Inter', sans-serif;
    border: none; border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    letter-spacing: 0.1px;
}
.auth-btn:hover { background: var(--accent-dark); box-shadow: 0 4px 16px rgba(255,164,0,0.35); transform: translateY(-1px); }
.auth-btn:active { transform: translateY(0); box-shadow: none; }
.auth-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.auth-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.auth-divider { height: 1px; background: var(--border-light); margin: 20px 0; }
.auth-divider-md { margin: 22px 0; background: #eaeaea; }

/* Remember-me checkbox */
.auth-remember { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.auth-remember input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; border-radius: 4px; }
.auth-remember span { font-size: 13px; color: var(--text-secondary); user-select: none; }
.auth-remember-hint { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; line-height: 1.45; }

/* Forgot-password link in label row */
.auth-forgot { font-size: 13px; color: var(--text-secondary); transition: color 0.2s; }
.auth-forgot:hover { color: var(--accent-dark); }

/* Status banners */
.auth-session-status {
    padding: 10px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #15803d;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 8px;
}

/* Top-of-form error summary */
.auth-error-summary {
    padding: 12px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex; align-items: flex-start; gap: 8px;
}
.auth-error-summary svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.auth-error-summary ul { margin: 4px 0 0; padding-left: 18px; }

/* Back link below card */
.auth-back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-secondary); margin-top: 20px; transition: color 0.2s; }
.auth-back-link:hover { color: var(--accent-dark); }
.auth-back-link svg { width: 14px; height: 14px; }
.auth-back-link-wrap { text-align: center; }

/* Footer link below card (e.g. "Don't have account?") */
.auth-card-footer { text-align: center; }
.auth-card-footer-text { font-size: 13px; color: var(--text-secondary); }
.auth-card-footer-link { font-size: 13px; font-weight: 700; color: var(--accent-dark); margin-left: 4px; }

/* ── Social login buttons ────────────────────────────────────────────────── */
.auth-social-btn {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; width: 100%;
    padding: 11px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-weight: 600; font-size: 13.5px;
    color: #1a1a1a; text-decoration: none;
    margin-bottom: 10px;
    background: white;
    transition: border-color .15s, background .15s;
}
.auth-social-btn:hover { border-color: var(--accent); background: #fffaf0; }
.auth-social-divider { text-align: center; color: #888; font-size: 11.5px; margin: 10px 0 2px; }

/* ── Invitation banner ───────────────────────────────────────────────────── */
.invitation-banner {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 24px;
}
.invitation-banner-title { font-size: 13px; font-weight: 700; color: #92400e; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.invitation-banner-body { font-size: 13px; color: #78350f; line-height: 1.5; }
.invitation-banner-body strong { font-weight: 600; }

/* ── Selected-plan banner (register) ─────────────────────────────────────── */
.plan-banner {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
}
.plan-banner-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; color: #92400e; font-weight: 700; }
.plan-banner-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; gap: 12px; }
.plan-banner-name { font-size: 16px; font-weight: 800; color: #1a1a1a; }
.plan-banner-details { font-size: 12px; color: #6b7280; margin-top: 2px; }
.plan-banner-link { font-size: 12px; color: #92400e; text-decoration: underline; font-weight: 600; white-space: nowrap; }

/* ── Audience selector (register) ────────────────────────────────────────── */
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 500px) { .audience-grid { grid-template-columns: 1fr; } }

.audience-option {
    display: flex; flex-direction: column; gap: 3px;
    padding: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    background: white;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.audience-option:hover { border-color: rgba(255,164,0,0.5); }
.audience-option.is-selected { border-color: var(--accent); background: #fff8ea; box-shadow: 0 4px 14px rgba(255,164,0,0.15); }
.audience-option-emoji { font-size: 20px; line-height: 1; }
.audience-option-title { font-weight: 700; font-size: 13px; color: #1a1a1a; margin-top: 4px; }
.audience-option-desc { font-size: 11.5px; color: #6b7280; }
.audience-option input[type="radio"] {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}
.audience-option:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── TOS box ─────────────────────────────────────────────────────────────── */
.tos-box-inline {
    margin-bottom: 22px;
    background: #f9fafb;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 12px 14px;
}
.tos-box-inline label { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: #444; cursor: pointer; }
.tos-box-inline input[type="checkbox"] { margin-top: 2px; }
.tos-box-inline a { color: var(--accent-dark); }

/* ── Password strength meter ─────────────────────────────────────────────── */
.pw-strength { margin-top: 10px; }
.pw-strength-bar-track { height: 4px; background: var(--border-light); border-radius: 2px; overflow: hidden; margin-bottom: 8px; }
.pw-strength-bar-fill { height: 100%; border-radius: 2px; transition: width 0.3s ease, background 0.3s ease; width: 0; }
.pw-strength-label { font-size: 12px; font-weight: 600; transition: color 0.3s ease; color: var(--text-muted); }
.pw-strength-rules { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; }
.pw-rule { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; transition: color 0.2s; }
.pw-rule.met { color: #16a34a; }
.pw-rule-icon { width: 14px; height: 14px; flex-shrink: 0; }

/* ── Password show/hide toggle ───────────────────────────────────────────── */
.pw-input-wrap { position: relative; }
.pw-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    padding: 6px;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
}
.pw-toggle:hover { color: var(--text-primary); background: #f3f4f6; }
.pw-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pw-toggle svg { width: 16px; height: 16px; }
.pw-input-wrap .auth-input { padding-right: 38px; }

/* ── Trust strip (login below form) ──────────────────────────────────────── */
.auth-trust-strip {
    margin-top: 18px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    display: flex; flex-direction: column; gap: 8px;
    font-size: 11.5px; color: var(--text-secondary); line-height: 1.5;
}
.auth-trust-strip-row { display: flex; align-items: center; gap: 8px; }
.auth-trust-strip svg { width: 14px; height: 14px; color: #16a34a; flex-shrink: 0; }
.auth-trust-strip strong { color: var(--text-primary); font-weight: 700; }
