:root {
    --azul-escuro:  #0d2b6e;
    --azul-medio:   #1a4bb5;
    --azul-claro:   #4a90d9;
    --azul-palido:  #ddeeff;
    --azul-gelo:    #f0f6ff;
    --amarelo:      #ffc107;
    --verde:        #1a9c52;
    --vermelho:     #e53935;
    --branco:       #ffffff;
    --cinza-texto:  #5a6472;
    --cinza-suave:  #f5f7fa;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }

body {
    font-family: 'Nunito', sans-serif;
    min-height: 100vh;
    display: flex;
    background: var(--cinza-suave);
    overflow-x: hidden;
}

/* ===== PAINEL ESQUERDO ===== */
.left-panel {
    flex: 1;
    background: linear-gradient(145deg, #071a45 0%, #0d2b6e 40%, #1a4bb5 80%, #2e66cc 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}
@media (max-width: 900px) { .left-panel { display: none; } }

.lp-circle { position: absolute; border-radius: 50%; pointer-events: none; }
.lp-c1 { width: 500px; height: 500px; top: -180px; right: -180px; background: radial-gradient(circle, rgba(74,144,217,.18) 0%, transparent 65%); }
.lp-c2 { width: 340px; height: 340px; bottom: -120px; left: -100px; background: radial-gradient(circle, rgba(255,193,7,.10) 0%, transparent 65%); }
.lp-dots {
    position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 34px 34px;
}

.lp-content { position: relative; z-index: 1; text-align: center; max-width: 380px; }
.lp-logo { display: flex; align-items: center; justify-content: center; gap: .65rem; margin-bottom: 2.4rem; }
.lp-logo-icon {
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; flex-shrink: 0;
}
.lp-brand { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: #fff; line-height: 1.1; }
.lp-tagline { font-size: .66rem; color: rgba(255,255,255,.5); letter-spacing: .8px; text-transform: uppercase; }

.lp-emoji {
    font-size: 6.5rem; display: block; margin-bottom: 1.3rem;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 28px rgba(0,0,0,.3));
}
@keyframes float { 0%,100%{transform:translateY(0) rotate(-3deg)} 50%{transform:translateY(-14px) rotate(3deg)} }

.lp-title { font-family: 'Playfair Display', serif; font-size: 1.9rem; color: #fff; line-height: 1.2; margin-bottom: .6rem; }
.lp-title em { color: var(--amarelo); font-style: italic; }
.lp-desc { font-size: .88rem; color: rgba(255,255,255,.65); line-height: 1.7; margin-bottom: 1.8rem; }

.lp-features { display: flex; flex-direction: column; gap: .6rem; text-align: left; }
.lp-feat {
    display: flex; align-items: center; gap: .75rem;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px; padding: .65rem .9rem;
    font-size: .83rem; color: rgba(255,255,255,.82); font-weight: 700;
}
.lp-feat-icon {
    width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--amarelo), #ffdd57);
    color: var(--azul-escuro); display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
}

/* ===== PAINEL DIREITO ===== */
.right-panel {
    width: 480px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;        /* coluna: header → form → footer */
    background: var(--branco);
    box-shadow: -4px 0 32px rgba(13,43,110,.08);
    min-height: 100vh;
    overflow-y: auto;
}
@media (max-width: 900px) {
    .right-panel { width: 100%; box-shadow: none; }
    body { background: var(--branco); }
}

/* Cabeçalho do painel: link voltar + logo mobile */
.right-header {
    padding: 1.2rem 2rem 0;
    flex-shrink: 0;
}
@media (max-width: 480px) { .right-header { padding: 1rem 1.2rem 0; } }

.back-home {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .8rem; font-weight: 800; color: var(--cinza-texto);
    text-decoration: none; transition: color .18s;
}
.back-home:hover { color: var(--azul-medio); }

/* Logo mobile */
.mobile-logo {
    display: none; align-items: center; gap: .6rem;
    margin-top: 1.2rem; text-decoration: none;
}
@media (max-width: 900px) { .mobile-logo { display: flex; } }
.mobile-logo-icon {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--azul-escuro), var(--azul-medio));
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.mobile-brand { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--azul-escuro); line-height: 1.1; }
.mobile-tagline { font-size: .66rem; color: var(--cinza-texto); letter-spacing: .6px; text-transform: uppercase; }

/* Área do formulário — cresce para preencher o espaço */
.right-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 2rem;
}
@media (max-width: 480px) { .right-body { padding: 1.5rem 1.2rem; } }

.form-wrap { width: 100%; max-width: 360px; }

/* Rodapé do painel */
.right-footer {
    padding: 1rem 2rem 1.4rem;
    text-align: center;
    font-size: .72rem;
    color: #b0bac6;
    flex-shrink: 0;
}
.right-footer a { color: var(--azul-claro); text-decoration: none; font-weight: 700; }
.right-footer a:hover { text-decoration: underline; }
@media (max-width: 480px) { .right-footer { padding: .8rem 1.2rem 1.2rem; } }

/* ===== ABAS ===== */
.tabs {
    display: flex; background: var(--azul-gelo);
    border-radius: 50px; padding: 4px; margin-bottom: 1.8rem;
}
.tab-btn {
    flex: 1; border: none; background: transparent;
    border-radius: 50px; padding: .52rem 1rem;
    font-family: 'Nunito', sans-serif; font-weight: 800; font-size: .88rem;
    color: var(--cinza-texto); cursor: pointer; transition: all .22s;
}
.tab-btn.active { background: var(--azul-medio); color: #fff; box-shadow: 0 4px 14px rgba(26,75,181,.3); }

/* Cabeçalho do form */
.form-header { margin-bottom: 1.4rem; }
.form-title { font-family: 'Playfair Display', serif; font-size: 1.65rem; color: var(--azul-escuro); line-height: 1.15; }
.form-sub { font-size: .84rem; color: var(--cinza-texto); margin-top: .3rem; }

/* Campos */
.field { margin-bottom: 1rem; }
.field-label {
    display: block; font-size: .76rem; font-weight: 800;
    color: var(--azul-escuro); margin-bottom: .38rem; letter-spacing: .3px;
}
.field-wrap { position: relative; display: flex; align-items: center; }
.field-icon {
    position: absolute; left: .95rem; color: var(--azul-claro);
    font-size: .95rem; pointer-events: none; transition: color .2s;
}
.field-input {
    width: 100%; border: 2px solid var(--azul-palido);
    border-radius: 12px; padding: .68rem 1rem .68rem 2.7rem;
    font-family: 'Nunito', sans-serif; font-size: .9rem;
    color: #1e2635; outline: none; background: var(--azul-gelo);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.field-input::placeholder { color: #b0bac6; }
.field-input:focus { border-color: var(--azul-medio); background: var(--branco); box-shadow: 0 0 0 4px rgba(26,75,181,.10); }
.field-wrap:focus-within .field-icon { color: var(--azul-medio); }
.field-input.error { border-color: var(--vermelho); box-shadow: 0 0 0 4px rgba(229,57,53,.1); }
.field-error { font-size: .71rem; color: var(--vermelho); font-weight: 700; margin-top: .28rem; display: none; }
.field-error.show { display: block; }

.toggle-pass {
    position: absolute; right: .85rem;
    background: none; border: none; cursor: pointer;
    color: var(--cinza-texto); font-size: .95rem; padding: .2rem;
    transition: color .18s; line-height: 1;
}
.toggle-pass:hover { color: var(--azul-medio); }

/* Força da senha */
.strength-bar { margin-top: .45rem; display: none; }
.strength-track { height: 5px; background: var(--azul-palido); border-radius: 50px; overflow: hidden; margin-bottom: .28rem; }
.strength-fill { height: 100%; border-radius: 50px; width: 0; transition: width .4s, background .4s; }
.strength-label { font-size: .68rem; font-weight: 800; }

/* Checkbox */
.checkbox-wrap { display: flex; align-items: flex-start; gap: .55rem; margin-bottom: 1rem; cursor: pointer; }
.checkbox-wrap input[type="checkbox"] { display: none; }
.checkbox-box {
    width: 19px; height: 19px; border-radius: 5px; flex-shrink: 0;
    border: 2px solid var(--azul-palido); background: var(--azul-gelo);
    display: flex; align-items: center; justify-content: center; transition: all .18s; margin-top: 2px;
}
.checkbox-wrap input:checked + .checkbox-box { background: var(--azul-medio); border-color: var(--azul-medio); }
.checkbox-wrap input:checked + .checkbox-box::after { content: '✓'; color: #fff; font-size: .72rem; font-weight: 800; }
.checkbox-text { font-size: .81rem; color: var(--cinza-texto); line-height: 1.5; }
.checkbox-text a { color: var(--azul-medio); font-weight: 800; text-decoration: none; }
.checkbox-text a:hover { text-decoration: underline; }

/* Esqueceu senha */
.forgot-row { display: flex; justify-content: flex-end; margin-top: -.4rem; margin-bottom: 1rem; }
.forgot-link { font-size: .77rem; font-weight: 800; color: var(--azul-claro); text-decoration: none; transition: color .15s; }
.forgot-link:hover { color: var(--azul-escuro); }

/* Botão enviar */
.btn-submit {
    width: 100%; border: none; border-radius: 12px;
    padding: .82rem; font-family: 'Nunito', sans-serif;
    font-weight: 900; font-size: .98rem; cursor: pointer;
    background: linear-gradient(135deg, var(--azul-medio), var(--azul-escuro));
    color: #fff; display: flex; align-items: center; justify-content: center; gap: .5rem;
    margin-bottom: 1.2rem; box-shadow: 0 4px 18px rgba(26,75,181,.35);
    transition: transform .18s, box-shadow .18s, opacity .18s;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(26,75,181,.4); }
.btn-submit:active { transform: scale(.98); }
.btn-submit.loading { opacity: .7; pointer-events: none; }
.btn-submit .spinner {
    width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff; border-radius: 50%;
    animation: spin .6s linear infinite; display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Divisor */
.divider {
    display: flex; align-items: center; gap: .75rem;
    margin-bottom: 1.1rem; font-size: .72rem; font-weight: 800;
    color: #c0cbd8; text-transform: uppercase; letter-spacing: .5px;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--azul-palido); }

/* Botões sociais */
.social-logins { display: flex; gap: .65rem; margin-bottom: 1.3rem; }
.btn-social {
    flex: 1; border: 2px solid var(--azul-palido); border-radius: 12px;
    padding: .58rem; background: var(--branco); cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: .45rem;
    font-family: 'Nunito', sans-serif; font-weight: 800; font-size: .8rem;
    color: #1e2635; transition: all .18s;
}
.btn-social:hover { border-color: var(--azul-claro); background: var(--azul-gelo); transform: translateY(-2px); }
.btn-social .soc-icon { font-size: 1.05rem; }
.btn-social.g .soc-icon { color: #e53935; }
.btn-social.f .soc-icon { color: #1877f2; }

/* Trocar aba */
.switch-link { text-align: center; font-size: .83rem; color: var(--cinza-texto); }
.switch-link a, .switch-link button {
    color: var(--azul-medio); font-weight: 800; text-decoration: none;
    background: none; border: none; cursor: pointer;
    font-family: inherit; font-size: inherit; padding: 0;
}
.switch-link a:hover, .switch-link button:hover { text-decoration: underline; }

/* Sucesso */
.success-box { display: none; text-align: center; padding: 1rem 0; animation: fadeUp .5s ease both; }
@keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
.success-icon { font-size: 3.5rem; margin-bottom: .8rem; }
.success-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--azul-escuro); margin-bottom: .4rem; }
.success-desc { font-size: .87rem; color: var(--cinza-texto); line-height: 1.6; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cinza-suave); }
::-webkit-scrollbar-thumb { background: var(--azul-claro); border-radius: 3px; }