/* auth.css — CSS isolado para login, cadastro e checkout
   ZERO variáveis CSS. Todas as cores hardcoded. */

/* ── Reset de escopo ── */
.auth-page, .co-page {
    font-family: 'Inter', system-ui, sans-serif;
    box-sizing: border-box;
    min-height: 100vh;
}
.auth-page *, .co-page * { box-sizing: border-box; }

/* ── AUTH PAGE (login + cadastro) ── */

/* Fundo navy escuro, card branco centralizado */
.auth-page {
    background: #0d0033;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 40px rgba(0,0,0,.4);
}

.auth-logo {
    display: block;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-decoration: none;
    margin-bottom: 1.75rem;
    color: #0d0033;
}

.auth-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0d0033;
    margin: 0 0 1.5rem;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

/* Inputs */
.auth-page .form-group {
    margin-bottom: 1rem;
}

.auth-page .form-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .82rem;
    font-weight: 600;
    color: #0d0033;
    margin-bottom: .35rem;
}

.auth-page .form-group .label-link {
    font-weight: 400;
    color: #64748b;
    font-size: .78rem;
    text-decoration: none;
}

.auth-page .form-group .label-link:hover { color: #ff0000; }

.auth-page .form-group .label-hint {
    font-weight: 400;
    color: #64748b;
    font-size: .78rem;
}

.auth-page .form-group input {
    display: block;
    width: 100%;
    padding: .65rem .85rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    font-size: .95rem;
    color: #0d0033;
    background: #ffffff;
    font-family: 'Inter', sans-serif;
    transition: border-color .15s;
    outline: none;
}

.auth-page .form-group input:focus {
    border-color: #0d0033;
    box-shadow: 0 0 0 3px rgba(13,0,51,.1);
}

.auth-page .form-group input::placeholder { color: #a0aec0; }

/* Botão submit */
.auth-btn {
    display: block;
    width: 100%;
    padding: .8rem;
    background: #ff0000;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    margin-top: 1.25rem;
    transition: background .2s;
    letter-spacing: .02em;
}

.auth-btn:hover { background: #cc0000; }

/* Alertas */
.auth-alert {
    padding: .7rem .9rem;
    border-radius: 7px;
    font-size: .875rem;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.auth-alert--erro {
    background: rgba(220,38,38,.08);
    border: 1px solid rgba(220,38,38,.25);
    color: #dc2626;
}

.auth-alert--ok {
    background: rgba(22,163,74,.08);
    border: 1px solid rgba(22,163,74,.25);
    color: #16a34a;
}

/* Footer link */
.auth-footer {
    text-align: center;
    font-size: .85rem;
    color: #64748b;
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-family: 'Inter', sans-serif;
}

.auth-footer a {
    color: #ff0000;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover { text-decoration: underline; }

/* ── CHECKOUT PAGE ── */

.co-page {
    background: #f8f8f8;
    color: #0d0033;
}

/* Mini header */
.co-header {
    background: #0d0033;
    padding: .85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.co-header__logo {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: .1em;
    color: #f7dd49;
    text-decoration: none;
}

.co-header__sair {
    font-size: .8rem;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.co-header__sair:hover { color: #fff; }

/* Body */
.co-body {
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.co-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0d0033;
    margin: 0 0 .35rem;
    font-family: 'Inter', sans-serif;
}

.co-subtitle {
    font-size: .95rem;
    color: #64748b;
    margin: 0 0 2rem;
    font-family: 'Inter', sans-serif;
}

/* Grid: planos + resumo */
.co-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.5rem;
    align-items: start;
}

/* Plano option (card selecionável) */
.co-plan {
    display: block;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    margin-bottom: .75rem;
    transition: border-color .15s, box-shadow .15s;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.co-plan:has(.plan-radio:checked),
.co-plan--selected {
    border-color: #0d0033;
    box-shadow: 0 0 0 3px rgba(13,0,51,.08);
}

.co-plan--featured {
    border-color: #f7dd49;
}

.co-plan--featured:has(.plan-radio:checked),
.co-plan--featured.co-plan--selected {
    border-color: #0d0033;
}

.co-plan__radio { position: absolute; opacity: 0; width: 0; height: 0; }

.co-plan__badge {
    display: inline-block;
    background: #f7dd49;
    color: #0d0033;
    font-size: .72rem;
    font-weight: 800;
    padding: .2rem .55rem;
    border-radius: 20px;
    letter-spacing: .05em;
    margin-bottom: .6rem;
    text-transform: uppercase;
}

.co-plan__body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.co-plan__nome {
    font-weight: 700;
    font-size: 1rem;
    color: #0d0033;
    display: block;
}

.co-plan__desc {
    font-size: .82rem;
    color: #64748b;
    display: block;
    margin-top: .15rem;
}

.co-plan__preco {
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

.co-plan__valor {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0d0033;
    display: block;
}

.co-plan__periodo {
    font-size: .78rem;
    color: #64748b;
}

/* Resumo / summary card */
.co-summary {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 1rem;
    font-family: 'Inter', sans-serif;
}

.co-summary__title {
    font-size: 1rem;
    font-weight: 700;
    color: #0d0033;
    margin: 0 0 1.25rem;
}

.co-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .9rem;
    color: #64748b;
    padding: .4rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.co-summary-line:last-of-type { border-bottom: none; }

.co-summary-line--total {
    font-size: 1rem;
    font-weight: 700;
    color: #0d0033;
    border-top: 2px solid #e2e8f0;
    margin-top: .5rem;
    padding-top: .75rem;
    border-bottom: none;
}

.co-summary-desconto { color: #16a34a; font-weight: 600; }

/* Cupom */
.co-cupom { margin: 1rem 0; }

.co-cupom label {
    font-size: .8rem;
    color: #64748b;
    display: block;
    margin-bottom: .35rem;
}

.co-cupom-row {
    display: flex;
    gap: .5rem;
}

.co-cupom-row input {
    flex: 1;
    padding: .55rem .75rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    font-size: .85rem;
    color: #0d0033;
    font-family: 'Inter', sans-serif;
    outline: none;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.co-cupom-row input:focus { border-color: #0d0033; }

.co-cupom-btn {
    padding: .55rem 1rem;
    background: #f8f8f8;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    font-size: .82rem;
    font-weight: 600;
    color: #0d0033;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background .15s;
    white-space: nowrap;
}

.co-cupom-btn:hover { background: #e2e8f0; }

.co-cupom-feedback {
    font-size: .8rem;
    margin-top: .35rem;
    font-family: 'Inter', sans-serif;
}

.co-cupom-feedback--ok  { color: #16a34a; }
.co-cupom-feedback--erro { color: #dc2626; }

/* Botão pagar */
.co-btn-pagar {
    display: block;
    width: 100%;
    padding: .9rem;
    background: #ff0000;
    color: #ffffff;
    border: none;
    border-radius: 9px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    margin-top: 1.25rem;
    transition: background .2s;
    letter-spacing: .02em;
}

.co-btn-pagar:hover:not(:disabled) { background: #cc0000; }
.co-btn-pagar:disabled { background: #94a3b8; cursor: not-allowed; }

.co-seguro {
    font-size: .75rem;
    color: #94a3b8;
    text-align: center;
    margin-top: .85rem;
    font-family: 'Inter', sans-serif;
}

/* Alertas checkout */
.co-alert {
    padding: .75rem 1rem;
    border-radius: 8px;
    font-size: .875rem;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
}
.co-alert--erro  { background: rgba(220,38,38,.08);  border: 1px solid rgba(220,38,38,.25);  color: #dc2626; }
.co-alert--ok    { background: rgba(22,163,74,.08);  border: 1px solid rgba(22,163,74,.25);  color: #16a34a; }
.co-alert--aviso { background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.25); color: #d97706; }

/* Footer checkout */
.co-footer {
    background: #07001a;
    color: rgba(255,255,255,.4);
    text-align: center;
    font-size: .78rem;
    padding: 1.25rem;
    font-family: 'Inter', sans-serif;
}

/* Hero checkout */
.co-hero {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    max-width: 640px;
    margin: 0 auto 2rem;
}
.co-hero__badge {
    display: inline-block;
    background: #f7dd49;
    color: #0d0033;
    font-size: .72rem;
    font-weight: 800;
    padding: .3rem .85rem;
    border-radius: 20px;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .85rem;
}
.co-hero__title {
    font-family: 'Inter', sans-serif;
    font-size: 1.9rem;
    font-weight: 900;
    color: #0d0033;
    margin: 0 0 .5rem;
    line-height: 1.2;
}
.co-hero__sub {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* Offer card (left column) */
.co-offer {
    background: #0d0033;
    border-radius: 14px;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}
.co-offer__header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.co-offer__tag {
    display: inline-block;
    background: #f7dd49;
    color: #0d0033;
    font-size: .7rem;
    font-weight: 800;
    padding: .25rem .7rem;
    border-radius: 20px;
    letter-spacing: .08em;
    margin-bottom: 1rem;
}
.co-offer__price {
    display: flex;
    align-items: baseline;
    gap: .3rem;
    margin-bottom: .25rem;
}
.co-offer__valor {
    font-size: 2.6rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}
.co-offer__period {
    font-size: 1rem;
    color: rgba(255,255,255,.5);
}
.co-offer__equiv {
    font-size: .82rem;
    color: rgba(255,255,255,.45);
    margin: 0;
}

/* Benefits list */
.co-benefits {
    list-style: none;
    margin: 0;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.co-benefits li {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .92rem;
    color: rgba(255,255,255,.85);
    padding: .5rem 0;
}
.co-benefits li i {
    color: #f7dd49;
    flex-shrink: 0;
    font-size: .85rem;
}

/* Trust row */
.co-trust {
    display: flex;
    justify-content: space-around;
    padding: 1.25rem 2rem;
}
.co-trust__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
}
.co-trust__item i {
    font-size: 1.25rem;
    color: #f7dd49;
}
.co-trust__item span {
    font-size: .75rem;
    color: rgba(255,255,255,.5);
    text-align: center;
}

/* Responsive */
@media (max-width: 700px) {
    .co-grid { grid-template-columns: 1fr; }
    .co-summary { position: static; }
    .auth-card { padding: 2rem 1.25rem; }
    .co-hero__title { font-size: 1.5rem; }
    .co-offer__valor { font-size: 2rem; }
    .co-trust { padding: 1rem 1.5rem; }
}

/* Ícones dentro dos campos (FontAwesome) */
.auth-page .input-icon {
    position: relative;
}

.auth-page .input-icon > i {
    position: absolute;
    left: .9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: .9rem;
    pointer-events: none;
    transition: color .15s;
}

.auth-page .input-icon > input {
    padding-left: 2.4rem;
}

.auth-page .input-icon:focus-within > i { color: #0d0033; }

.auth-btn i { margin-right: .45rem; }
