@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap");

/* auth.css — mobile-first (login/cadastro) */
body {
    font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
    color: #0f172a;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    padding: 24px 0 48px;
    background:
        radial-gradient(1200px 600px at 10% 10%, rgba(37, 99, 235, 0.16), transparent 55%),
        radial-gradient(900px 500px at 90% 20%, rgba(22, 163, 74, 0.14), transparent 55%),
        #f8fafc;
}

.auth-wrap {
    width: 100%;
    display: flex;
    align-items: center;
}

.auth-grid {
    width: 100%;
    display: grid;
    gap: 20px;
}

/* =========================
   Side panel
========================= */
.auth-side {
    border-radius: 20px;
    padding: 22px 20px;
    background:
        linear-gradient(140deg, rgba(30, 64, 175, 0.95), rgba(15, 23, 42, 0.95));
    color: #e2e8f0;
    border: 1px solid rgba(15, 23, 42, 0.2);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-side .auth-brand {
    justify-content: flex-start;
    padding: 0;
    margin: 0;
}

.auth-side .auth-brand-logo {
    height: 54px;
}

.auth-side .auth-brand-link {
    padding: 12px 16px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.18);
}

.auth-side-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-side-title {
    margin: 0;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 800;
    color: #ffffff;
}

.auth-side-text {
    margin: 0;
    font-size: 15px;
    color: #e2e8f0;
    opacity: 1;
    line-height: 1.5;
}

.auth-side-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    font-size: 14px;
}

.auth-side-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.auth-side-list li span {
    display: inline-flex;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.16);
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.auth-side-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #f8fafc;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* =========================
   Brand (logo)
========================= */
.auth-brand {
    width: 100%;
    padding: 0 16px;
    margin: 6px auto 12px;
    display: flex;
    justify-content: center;
    text-align: center;
}

.auth-brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.auth-brand-logo {
    display: block;
    width: auto;
    height: 48px;
}

/* =========================
   Card
========================= */
.auth-card {
    width: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 18px;
    padding: 22px 20px;
    box-shadow:
        0 16px 34px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: -120px auto auto -120px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 70%);
    pointer-events: none;
}

.auth-card::after {
    content: "";
    position: absolute;
    inset: auto -120px -120px auto;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.16), transparent 70%);
    pointer-events: none;
}

/* =========================
   Header
========================= */
.auth-header {
    margin-bottom: 16px;
    background: rgba(15, 23, 42, 0.04);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(6px);
}

.auth-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
}

.auth-subtitle {
    margin: 6px 0 0;
    font-size: 14px;
    color: #475569;
}

/* =========================
   Alert
========================= */
.auth-alert {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 12px 14px;
    border-radius: 12px;
    margin: 12px 0;
    font-size: 14px;
}

.auth-alert-success {
    background: rgba(22, 163, 74, 0.1);
    border-color: rgba(22, 163, 74, 0.24);
    color: #166534;
}

/* =========================
   Form
========================= */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.auth-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
    color: #334155;
}

.auth-field input {
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.2);
    outline: none;
    font-size: 16px;
    line-height: 1.2;
    background: #ffffff;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.auth-field input:focus {
    border-color: rgba(37, 99, 235, 0.6);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    background: #f8fafc;
}

/* Button */
.auth-btn {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 16px;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    border: none;
    box-shadow: 0 12px 24px rgba(30, 64, 175, 0.3);
}

.auth-btn:hover {
    filter: brightness(1.03);
}

/* Links */
.auth-links {
    text-align: center;
    margin-top: 2px;
    font-size: 14px;
    color: #475569;
}

.auth-links-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-links a {
    color: #1e40af;
}

/* =========================
   Pick cards (escolher cadastro)
========================= */
.pick-wrap {
    display: grid;
    gap: 12px;
    margin-top: 6px;
}

.pick-card {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 16px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #f8fafc;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.pick-card:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.pick-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1e40af;
}

.pick-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

.pick-title {
    font-weight: 800;
    margin: 0 0 6px 0;
}

.pick-desc {
    margin: 0;
    opacity: .82;
    font-size: 14px;
}

/* =========================
   Layout helpers
========================= */
.inline-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 900px) {
    .inline-2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================
   Breakpoints
========================= */
@media (max-width: 360px) {
    .auth-brand-logo {
        height: 38px;
    }
    .auth-card {
        padding: 16px;
    }
    .auth-title {
        font-size: 22px;
    }
}

@media (min-width: 860px) {
    .auth-page {
        align-items: center;
        padding: 40px 0 56px;
    }
    .auth-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        align-items: stretch;
    }
    .auth-card {
        padding: 26px;
    }
    .auth-title {
        font-size: 28px;
    }
    .auth-subtitle {
        font-size: 15px;
    }
}

@media (max-height: 540px) {
    .auth-page {
        padding-top: 16px;
    }
}

/* Deixa SELECT com o mesmo “look” dos inputs */
.auth-field select {
    width: 100%;
    padding: 12px 14px;
    padding-right: 44px;
    /* espaço para a setinha */
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 12px;
    background: #fff;
    font: inherit;
    color: inherit;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Foco igual input */
.auth-field select:focus {
    border-color: rgba(0, 0, 0, .35);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, .08);
}

/* Estado disabled igual input */
.auth-field select:disabled {
    background: rgba(0, 0, 0, .04);
    cursor: not-allowed;
    opacity: .85;
}

/* Placeholder do “Selecione...” (option vazia) mais suave */
.auth-field select option[value=""] {
    color: rgba(0, 0, 0, .55);
}

/* Apenas campos que têm select recebem a setinha */
.auth-field:has(select) {
    position: relative;
}

.auth-field:has(select)::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(0, 0, 0, .55);
    border-bottom: 2px solid rgba(0, 0, 0, .55);
    transform: translateY(-35%) rotate(45deg);
    pointer-events: none;
}


/* Cabeçalho do card com mesma cor do fundo */
/* MUDEI AS COISAS AQUI */



.termo-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 9999;
}

.termo-modal {
    width: min(860px, 100%);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    display: flex;
    flex-direction: column;
    max-height: 86vh;
}

.termo-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.termo-logos {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.termo-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}

.termo-title-wrap {
    flex: 1;
}

.termo-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
}

.termo-subtitle {
    margin: 6px 0 0;
    font-size: 13px;
    opacity: .75;
}

.termo-close {
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 8px;
    opacity: .7;
}

.termo-close:hover {
    opacity: 1;
}

.termo-body {
    padding: 16px;
    overflow: auto;
}

.termo-ol {
    padding-left: 18px;
}

.termo-ol>li {
    margin: 10px 0;
}

.termo-ol ol {
    padding-left: 18px;
    margin-top: 8px;
}

.termo-ol ol li {
    margin: 6px 0;
}

.termo-alert {
    margin-top: 14px;
    padding: 12px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, .04);
}

.termo-accept {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed rgba(0, 0, 0, .15);
}

.termo-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    user-select: none;
}

.termo-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 14px 16px;
    border-top: 1px solid rgba(0, 0, 0, .08);
}

/* mobile */
@media (max-width: 520px) {
    .termo-logo {
        width: 42px;
        height: 42px;
    }

    .termo-title {
        font-size: 16px;
    }

    .termo-actions {
        flex-direction: column;
    }

    .termo-actions .btn {
        width: 100%;
    }
}

.auth-success {
    background: #DCFCE7;
    border: 1px solid #16A34A;
    color: #065F46;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 16px;
}
