/*
 * AT-Sys: padrão visual das telas públicas (login, recuperar senha, escolha de plano,
 * cadastro e forma de pagamento). Carregado no fim do <head> de cada uma, depois do
 * <style> próprio da tela, e só troca cores e acabamento; nenhuma regra muda o fluxo.
 */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --gradient-start: #4361ee;
    --gradient-end: #3a0ca3;
    --text-main: #1f2340;
    --at-azul: #4361ee;
    --at-roxo: #3a0ca3;
    --at-ciano: #4cc9f0;
    --at-rosa: #f72585;
    --at-noite: #0a1640;
    --at-suave: #6b7193;
    --at-borda: #eceef6;
}

/* Fundo igual ao topo da página inicial: noite, azul e roxo, com pontinhos */
html body {
    background: linear-gradient(150deg, var(--at-noite) 0%, #1b2a8a 45%, var(--at-azul) 75%, var(--at-roxo) 100%) fixed !important;
}
html body::before {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
    background-size: 26px 26px;
}

/* Bolhas animadas viram manchas de luz nas cores do sistema */
html body .bg-shapes .shape { background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 70%) !important; }
html body .bg-shapes .shape-1 { background: radial-gradient(circle, rgba(76, 201, 240, .55), transparent 70%) !important; }
html body .bg-shapes .shape-2 { background: radial-gradient(circle, rgba(247, 37, 133, .35), transparent 70%) !important; }
html body .bg-shapes .shape-4 { background: radial-gradient(circle, rgba(72, 149, 239, .40), transparent 70%) !important; }

/* Cartões: branco, cantos de 24 px, sombra profunda e faixa colorida no topo */
html body .login-card,
html body .cadastro-card,
html body .recovery-card,
html body .plans-card {
    background: #fff !important;
    border: 0 !important;
    border-radius: 24px !important;
    box-shadow: 0 30px 70px rgba(5, 10, 40, .45) !important;
    position: relative;
    z-index: 1;
}
html body .login-card::after,
html body .cadastro-card::after,
html body .recovery-card::after,
html body .plans-card::after {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px;
    background: linear-gradient(90deg, var(--at-ciano), var(--at-azul), var(--at-roxo));
    border-radius: 24px 24px 0 0;
}
html body .login-card::before,
html body .cadastro-card::before,
html body .recovery-card::before,
html body .plans-card::before {
    background: radial-gradient(circle, rgba(67, 97, 238, .05) 0%, transparent 70%) !important;
}

/* Títulos e textos */
html body .page-title, html body .brand-logo { letter-spacing: -.02em; }
html body .login-subtitle, html body .page-subtitle, html body .recovery-subtitle { color: var(--at-suave) !important; }
html body .form-label { color: #1f2340; font-weight: 600; }

/* Campos */
html body .form-control, html body .form-select { border-radius: 12px; border-color: #e1e4f0; }
html body .form-control:focus, html body .form-select:focus {
    border-color: var(--at-azul) !important;
    box-shadow: 0 0 0 .22rem rgba(67, 97, 238, .16) !important;
}
html body .input-group:focus-within { box-shadow: 0 0 0 .22rem rgba(67, 97, 238, .16) !important; border-radius: 12px; }
html body .input-group-text { color: var(--at-azul); }
html body .form-check-input:checked { background-color: var(--at-azul) !important; border-color: var(--at-azul) !important; }

/* Botões principais */
html body .btn-login, html body .btn-cadastrar, html body .btn-recovery, html body .btn-assinar, html body .btn-pricing-primary {
    background: linear-gradient(135deg, var(--at-azul), var(--at-roxo)) !important;
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 24px rgba(67, 97, 238, .30) !important;
    color: #fff !important;
}
html body .btn-login:hover, html body .btn-cadastrar:hover, html body .btn-recovery:hover, html body .btn-assinar:hover, html body .btn-pricing-primary:hover {
    box-shadow: 0 14px 30px rgba(67, 97, 238, .42) !important;
}
html body .btn-pricing-outline { color: var(--at-azul) !important; border-color: color-mix(in srgb, var(--at-azul) 40%, #fff) !important; background: #fff !important; }
html body .btn-pricing-outline:hover { color: #fff !important; background: var(--at-azul) !important; border-color: var(--at-azul) !important; }

/* Links dentro dos cartões */
html body .register-link, html body .forgot-link, html body .login-link { color: var(--at-azul) !important; }
html body .register-link:hover, html body .forgot-link:hover, html body .login-link:hover { color: var(--at-roxo) !important; }

/* Links sobre o fundo escuro (voltar ao início, voltar ao login) */
html body .back-home, html body .back-login, html body .btn-voltar {
    background: rgba(255, 255, 255, .12) !important; border: 1px solid rgba(255, 255, 255, .25) !important; color: #fff !important; border-radius: 999px !important;
}
html body .back-home:hover, html body .back-login:hover, html body .btn-voltar:hover { background: rgba(255, 255, 255, .22) !important; }

/* Planos */
html body .pricing-card { border: 1px solid var(--at-borda) !important; border-radius: 20px !important; box-shadow: 0 4px 14px rgba(31, 35, 64, .06) !important; overflow: hidden; }
html body .pricing-card:hover { box-shadow: 0 18px 36px rgba(31, 35, 64, .12) !important; }
html body .pricing-card.featured { border: 2px solid var(--at-azul) !important; box-shadow: 0 18px 40px rgba(67, 97, 238, .22) !important; }
html body .pricing-header { background: linear-gradient(135deg, var(--at-azul), var(--at-roxo)) !important; }
html body .pricing-features li i { color: #2bb673 !important; }
html body .popular-badge { background: linear-gradient(135deg, var(--at-rosa), #f8961e) !important; }

/* Forma de pagamento: opção escolhida */
html body .plano-opcao.active, html body .metodo-pagamento.active {
    border-color: var(--at-azul) !important;
    background: color-mix(in srgb, var(--at-azul) 6%, #fff) !important;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, .15) !important;
}
html body .plano-opcao:hover, html body .metodo-pagamento:hover { border-color: color-mix(in srgb, var(--at-azul) 50%, #fff) !important; }

/* Passos da recuperação de senha */
html body .step.active .step-circle, html body .step.completed .step-circle { background: linear-gradient(135deg, var(--at-azul), var(--at-roxo)) !important; border-color: transparent !important; color: #fff !important; }
html body .step.active .step-label { color: var(--at-azul) !important; }

/* Avisos */
html body .alert { border-radius: 14px; }

/* Botões de vidro colorido (liquid glass) nos cartões. O desfoque de fundo dos
   cartões impediria o vidro de funcionar, e o cartão agora é branco sólido. */
html body .login-card, html body .cadastro-card, html body .recovery-card, html body .plans-card { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html body .btn-login.lg-ready, html body .btn-cadastrar.lg-ready, html body .btn-recovery.lg-ready,
html body .btn-assinar.lg-ready, html body .btn-pricing.lg-ready {
    background: none !important; border: 0 !important; color: #fff !important;
    box-shadow: 0 10px 24px rgba(67, 97, 238, .25) !important; border-radius: 999px !important;
}
html body .btn-login.lg-ready::before, html body .btn-cadastrar.lg-ready::before, html body .btn-recovery.lg-ready::before, html body .btn-assinar.lg-ready::before { display: none !important; }
html body .btn-login.lg-ready:hover, html body .btn-cadastrar.lg-ready:hover, html body .btn-recovery.lg-ready:hover, html body .btn-assinar.lg-ready:hover, html body .btn-pricing.lg-ready:hover { transform: none !important; }
