/* Massa Perfis — Login variação 1: Painel dividido */
:root {
    --cobalt: #2B4BE0;
    --cobalt-dark: #1F38B0;
    --ink: #15183A;
    --paper: #F7F7F4;
    --sun: #FFC94A;
    --line: #D9DBE4;
    --muted: #5D6178;
    --danger: #C62839;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Bricolage Grotesque', 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    min-height: 100vh;
}

/* Lado da marca */
.brand-side {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(28px, 5vw, 64px);
    background: var(--cobalt);
    color: var(--paper);
    overflow: hidden;
}

.brand-side::after {
    /* grade sutil de “fichas” de perfil */
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 18px 18px, rgba(255,255,255,.14) 7px, transparent 8px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to top, #000 0%, transparent 70%);
    -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 70%);
    pointer-events: none;
}

.brand-top { display: flex; align-items: center; gap: 12px; font-weight: 600; position: relative; z-index: 1; }

.brand-dot {
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--sun);
    box-shadow: 0 0 0 6px rgba(255, 201, 74, .25);
}

.wordmark {
    position: relative; z-index: 1;
    margin: 0;
    font-size: clamp(3.5rem, 9vw, 8rem);
    line-height: .88;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.tagline {
    position: relative; z-index: 1;
    max-width: 34ch;
    margin: 24px 0 0;
    font-size: 1.125rem;
    line-height: 1.5;
    color: rgba(247, 247, 244, .82);
}

.brand-foot { position: relative; z-index: 1; margin: 0; font-size: .85rem; color: rgba(247,247,244,.65); }

/* Lado do formulário */
.form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 5vw, 64px);
}

.auth-form { width: 100%; max-width: 380px; }

.auth-form h2 { margin: 0 0 8px; font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }

.auth-form .sub { margin: 0 0 32px; color: var(--muted); line-height: 1.5; }

.field { margin-bottom: 20px; }

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

.field input {
    width: 100%;
    padding: 14px 16px;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    transition: border-color .2s, box-shadow .2s;
}

.field input::placeholder { color: #9A9DB0; }

.field input:focus {
    outline: none;
    border-color: var(--cobalt);
    box-shadow: 0 0 0 4px rgba(43, 75, 224, .15);
}

.btn {
    width: 100%;
    margin-top: 8px;
    padding: 15px;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    background: var(--ink);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background .2s, transform .1s;
}

.btn:hover { background: var(--cobalt); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

.alert {
    margin-bottom: 24px;
    padding: 12px 14px;
    font-size: .95rem;
    color: var(--danger);
    background: #FDECEE;
    border-left: 4px solid var(--danger);
    border-radius: 6px;
}

.alt { margin: 28px 0 0; color: var(--muted); }
.alt a { color: var(--cobalt); font-weight: 600; text-decoration: none; }
.alt a:hover { text-decoration: underline; }
.alt a:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; border-radius: 2px; }

/* Única animação: a palavra-marca sobe ao carregar */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.wordmark, .tagline { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.tagline { animation-delay: .12s; }

@media (max-width: 860px) {
    .split { grid-template-columns: 1fr; }
    .brand-side { min-height: auto; gap: 40px; }
    .wordmark { font-size: clamp(3rem, 15vw, 5rem); }
    .brand-foot, .brand-top { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .wordmark, .tagline { animation: none; }
}
