/* includes/auth-style.css
   Estilo compartilhado entre cadastro.php e login.php */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,500;0,600;0,700;1,500&family=Inter:wght@400;500;600&display=swap');

:root {
    --bg: #F7F5EF;
    --ink: #1B1B18;
    --ink-soft: #57534E;
    --line: #E4E1D8;
    --line-focus: #B9B4A6;
    --navy: #10192E;
    --navy-hover: #1B2A47;
    --gold: #D4AF6A;
    --green: #1E8E5A;
    --error: #B3261E;
    --error-bg: #FBEAE9;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Layout split-screen (lado de marca + lado de formulário) ---------- */

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

.auth-side {
    flex: 1 1 44%;
    background: linear-gradient(135deg, var(--navy), #050B18);
    color: #fff;
    padding: 64px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-side::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    right: -120px;
    top: -120px;
    border-radius: 50%;
    background: rgba(212, 175, 106, 0.10);
}

.auth-brand {
    position: absolute;
    top: 44px;
    left: 56px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
}

.auth-brand .accent { color: var(--gold); }

.auth-headline {
    font-family: 'Lora', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.18;
    margin: 0 0 18px;
    position: relative;
    z-index: 1;
}

.auth-headline .accent { color: var(--gold); display: block; }

.auth-side .lead {
    color: #C9CEDA;
    font-size: 1.02rem;
    line-height: 1.6;
    max-width: 380px;
    margin: 0 0 40px;
    position: relative;
    z-index: 1;
}

.auth-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 17px;
    position: relative;
    z-index: 1;
}

.auth-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.98rem;
    color: #E8E9EE;
}

.auth-benefits .icon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-form-panel {
    flex: 1 1 56%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    background: var(--bg);
}

.copyright {
    text-align: center;
    font-size: 0.78rem;
    color: var(--ink-soft);
    margin-top: 22px;
}

@media (max-width: 900px) {
    .auth-side { display: none; }
    .auth-form-panel { flex: 1 1 100%; }
}

.auth-card {
    width: 100%;
    max-width: 440px;
}

/* ---------- Páginas de texto legal (Termos de Uso, Política de Privacidade) ---------- */

.legal-page {
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px 60px;
}

.legal-topbar {
    width: 100%;
    max-width: 760px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 0 20px;
}

.legal-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
    text-decoration: none;
}

.legal-container {
    width: 100%;
    max-width: 760px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 48px 56px;
}

.legal-container h1 {
    font-family: 'Lora', Georgia, serif;
    font-weight: 700;
    font-size: 2rem;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.legal-updated {
    color: var(--ink-soft);
    font-size: 0.88rem;
    margin: 0 0 36px;
}

.legal-container h2 {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.28rem;
    font-weight: 600;
    margin: 34px 0 12px;
}

.legal-container h2:first-of-type { margin-top: 0; }

.legal-container h3 {
    font-size: 1.02rem;
    font-weight: 700;
    margin: 22px 0 8px;
}

.legal-container p,
.legal-container li {
    font-size: 0.96rem;
    line-height: 1.7;
    color: #33312C;
}

.legal-container ul,
.legal-container ol {
    padding-left: 22px;
    margin: 10px 0 16px;
}

.legal-container a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }

.legal-footer {
    width: 100%;
    max-width: 760px;
    text-align: center;
    margin-top: 24px;
}

.auth-card h1 {
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    font-size: 2.3rem;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.auth-card .subtitle {
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.5;
    margin: 0 0 32px;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.field .input-wrap {
    position: relative;
}

.field input {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font-size: 0.98rem;
    font-family: inherit;
    color: var(--ink);
    transition: border-color .15s ease;
}

.field input::placeholder { color: #A9A49A; }

.field input:focus {
    outline: none;
    border-color: var(--line-focus);
}

.field input.has-error {
    border-color: var(--error);
}

.toggle-senha {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink-soft);
    padding: 4px;
    display: flex;
}

.row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.link {
    color: var(--ink);
    font-size: 0.92rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.link:hover { color: var(--navy-hover); }

.checklist {
    list-style: none;
    padding: 0;
    margin: 10px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.88rem;
    color: #A9A49A;
    transition: color .15s ease;
}

.checklist li svg { flex-shrink: 0; opacity: .5; transition: opacity .15s ease, stroke .15s ease; }

.checklist li.ok {
    color: var(--ink);
}

.checklist li.ok svg {
    opacity: 1;
    stroke: var(--green);
}

.turnstile-box {
    margin: 4px 0 24px;
}

.btn-primary {
    width: 100%;
    background: var(--navy);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s ease;
}

.btn-primary:hover { background: var(--navy-hover); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }

.fine-print {
    text-align: center;
    font-size: 0.84rem;
    color: var(--ink-soft);
    line-height: 1.6;
    margin-top: 22px;
}

.fine-print a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }

.switch-line {
    text-align: center;
    margin-top: 26px;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.alert-error {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid #F3C6C3;
}

.alert-success {
    background: #E9F5EE;
    color: var(--green);
    border: 1px solid #BEE3CE;
}