.tela-login {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: safe center;
    padding: 16px;
    background: var(--bg);
    z-index: 10;
    overflow-y: auto;
}

.tela-login-topo {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 16px;
    background: var(--bg);
    z-index: 10;
    overflow-y: auto;
}

.login-card {
    width: 100%;
    max-width: 360px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 32px 28px;
    text-align: center;
}

.login-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 50%;
    margin-bottom: 16px;
}

h1 {
    font-family: var(--font-head);
    font-size: 1.5em;
    color: var(--dark);
    margin-bottom: 16px;
}

form {
    text-align: left;
}

label {
    display: block;
    font-size: 0.85em;
    color: var(--muted);
    margin: 14px 0 4px;
}

input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1em;
}

input:focus {
    outline: none;
    border-color: var(--brand);
}

.btn-primary {
    width: 100%;
    margin-top: 20px;
    padding: 11px;
    border: none;
    border-radius: var(--radius);
    background: var(--brand);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--brand-d);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: default;
}

.btn-link {
    display: block;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-secondary-full {
    width: 100%;
    margin-top: 10px;
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 1em;
    cursor: pointer;
}

.btn-secondary-full:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.login-msg {
    color: var(--muted);
    text-align: center;
}

.login-dica {
    font-size: 0.78em;
    color: var(--muted);
    margin-top: 10px;
}

.login-erro {
    color: var(--err);
    font-size: 0.88em;
    margin-top: 12px;
    text-align: center;
}

.login-divisor {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
    color: var(--muted);
    font-size: 0.82em;
}

.login-divisor::before,
.login-divisor::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95em;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-social svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-google {
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--dark);
}

.btn-google:hover {
    background: var(--bg);
}

.btn-facebook {
    border: none;
    background: #1877F2;
    color: var(--white);
}

.btn-facebook:hover {
    background: #145FC4;
}

.login-card-largo {
    max-width: 480px;
}

.form-linha {
    display: flex;
    gap: 10px;
}

.form-linha > div {
    flex: 1;
}

.form-linha input {
    width: 100%;
}

.campo-com-botao {
    position: relative;
}

.campo-com-botao input {
    padding-right: 76px;
}

.btn-dentro-input {
    position: absolute;
    top: 4px;
    right: 4px;
    bottom: 4px;
    padding: 0 14px;
    border: none;
    border-radius: 6px;
    background: var(--brand);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
}

.btn-dentro-input:hover {
    background: var(--brand-d);
}

.login-dica-link {
    text-align: center;
    font-size: 0.95em;
    margin-top: 14px;
}
