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

:root {
    --auth-navy: #0a1628;
    --auth-navy-mid: #132337;
    --auth-blue: #3b82f6;
    --auth-blue-dark: #2563eb;
    --auth-gold: #d4a72c;
    --auth-text: #0f172a;
    --auth-muted: #64748b;
    --auth-border: #e2e8f0;
    --auth-bg: #ffffff;
    --auth-radius: 12px;
    --auth-font: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body.lc-auth-page {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: var(--auth-font);
    color: var(--auth-text);
    background: var(--auth-bg);
    -webkit-font-smoothing: antialiased;
}

.lc-auth-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .lc-auth-shell { grid-template-columns: 1fr 1fr; }
}

/* ---- Painel esquerdo ---- */
.lc-auth-panel {
    display: none;
    position: relative;
    background: var(--auth-navy);
    color: #fff;
    padding: 3rem;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .lc-auth-panel {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.lc-auth-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(59, 130, 246, 0.18), transparent),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(212, 167, 44, 0.1), transparent);
    pointer-events: none;
}

.lc-auth-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.lc-auth-panel-inner {
    position: relative;
    z-index: 1;
    max-width: 440px;
}

.lc-auth-wordmark {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    line-height: 1;
}

.lc-auth-wordmark span { color: var(--auth-gold); }

.lc-auth-panel h2 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    color: #f8fafc;
}

.lc-auth-panel-lead {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 2.5rem;
}

.lc-auth-perks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lc-auth-perks li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.88);
}

.lc-auth-perk-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--auth-gold);
    font-size: 0.9rem;
}

.lc-auth-panel-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding: 0.65rem 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.lc-auth-panel-cta:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* ---- Area do formulario ---- */
.lc-auth-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 1.5rem;
    background: #f8fafc;
}

@media (min-width: 1024px) {
    .lc-auth-main {
        background: #fff;
        padding: 3rem;
    }
}

.lc-auth-form-wrap {
    width: 100%;
    max-width: 400px;
}

.lc-auth-form-wrap--wide { max-width: 460px; }

.lc-auth-top {
    margin-bottom: 2rem;
}

.lc-auth-top img {
    height: 32px;
    width: auto;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .lc-auth-top img { display: none; }
}

.lc-auth-top h1 {
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 0.4rem;
    color: var(--auth-text);
}

.lc-auth-top p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--auth-muted);
    line-height: 1.5;
}

/* ---- Campos ---- */
.lc-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.lc-auth-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--auth-text);
    margin-bottom: 0.4rem;
}

.lc-auth-input {
    position: relative;
    display: block;
    width: 100%;
}

.lc-auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.875rem;
    pointer-events: none;
    z-index: 2;
    line-height: 1;
}

.lc-auth-input input {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 14px 0 44px;
    font-family: var(--auth-font);
    font-size: 0.9375rem;
    color: var(--auth-text);
    background: #fff;
    border: 1.5px solid var(--auth-border);
    border-radius: var(--auth-radius);
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
}

.lc-auth-input input::placeholder { color: #94a3b8; }

.lc-auth-input input:hover { border-color: #cbd5e1; }

.lc-auth-input input:focus {
    outline: none;
    border-color: var(--auth-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.lc-auth-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
}

@media (min-width: 520px) {
    .lc-auth-grid { grid-template-columns: 1fr 1fr; }
}

.lc-auth-grid .lc-auth-field--full { grid-column: 1 / -1; }

/* ---- Botao ---- */
.lc-auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 50px;
    margin-top: 0.25rem;
    border: none;
    border-radius: var(--auth-radius);
    background: linear-gradient(135deg, var(--auth-blue) 0%, var(--auth-blue-dark) 100%);
    color: #fff;
    font-family: var(--auth-font);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

.lc-auth-submit:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    transform: translateY(-1px);
}

.lc-auth-submit:active { transform: translateY(0); }

/* ---- Checkbox termos ---- */
.lc-auth-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--auth-muted);
    cursor: pointer;
}

.lc-auth-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--auth-blue-dark);
}

.lc-auth-check a {
    color: var(--auth-blue-dark);
    font-weight: 500;
    text-decoration: none;
}

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

/* ---- Banner plano ---- */
.lc-auth-plan-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.25rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--auth-radius);
    font-size: 0.875rem;
    color: #1e40af;
    line-height: 1.45;
}

.lc-auth-plan-banner i {
    margin-top: 2px;
    flex-shrink: 0;
}

/* ---- Alertas ---- */
.lc-auth-msgs { margin-bottom: 1rem; }

.lc-auth-msgs .alert,
.lc-auth-alert {
    font-size: 0.875rem;
    border-radius: var(--auth-radius);
    padding: 0.75rem 1rem;
    margin: 0;
}

.lc-auth-alert ul { margin: 0; padding-left: 1.1rem; }

/* ---- Rodape do form ---- */
.lc-auth-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--auth-muted);
}

.lc-auth-links a {
    color: var(--auth-blue-dark);
    font-weight: 600;
    text-decoration: none;
}

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

.lc-auth-sep { margin: 0 0.4rem; color: #cbd5e1; }

.lc-auth-support {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
}

.lc-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--auth-muted);
    text-decoration: none;
}

.lc-auth-back:hover { color: var(--auth-text); }
