
.login-main {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 85, 51, .14) 0%, transparent 65%);
}

/* ── Abas ── */
.login-tabs {
    display: flex;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1.5rem;
}

.tab {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--muted);
    padding: 9px 28px;
    border-radius: 9px;
    font-family: 'Syne', sans-serif;
    font-size: .9rem;
    font-weight: 600;
    transition: all .2s;
}

.tab.active {
    background: var(--accent);
    color: #fff;
}

.tab:not(.active):hover {
    color: var(--text);
}

/* ── Card ── */
.login-card {
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
}

.login-card h1 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: .4rem;
}

.login-sub {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 2rem;
}

/* ── Fields ── */
.field {
    margin-bottom: 1.1rem;
}

.field label {
    display: block;
    font-size: .82rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-radius: 10px;
    padding: 11px 14px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: .95rem;
    outline: none;
    transition: border-color .2s;
}

.field input:focus {
    border-color: var(--accent);
}

.field input::placeholder {
    color: var(--muted);
}

.input-eye {
    position: relative;
}

.input-eye input {
    padding-right: 42px;
}

.eye-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: .9rem;
    color: var(--muted);
    padding: 4px;
    transition: color .2s;
}

.eye-btn:hover {
    color: var(--text);
}

.esqueci {
    display: block;
    text-align: right;
    font-size: .8rem;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 1.25rem;
    transition: color .2s;
}

.esqueci:hover {
    color: var(--accent);
}

/* ── Botão submit ── */
.btn-submit {
    width: 100%;
    padding: 13px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .15s;
    margin-bottom: 1rem;
}

.btn-submit:hover {
    background: var(--accent2);
}

.btn-submit:active {
    transform: scale(.98);
}

/* ── Mensagem de feedback ── */
.msg-form {
    font-size: .85rem;
    text-align: center;
    min-height: 20px;
    border-radius: 8px;
    padding: 0;
    transition: all .2s;
}

.msg-form.sucesso {
    color: #4ade80;
    background: rgba(74, 222, 128, .1);
    padding: 8px 12px;
}

.msg-form.erro {
    color: #f87171;
    background: rgba(248, 113, 113, .1);
    padding: 8px 12px;
}

/* ── Trocar painel ── */
.trocar-painel {
    text-align: center;
    font-size: .85rem;
    color: var(--muted);
}

.trocar-painel button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--accent);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: underline;
    padding: 0;
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.75rem 1.25rem;
    }
}