/* ============================================================
   Layout de login — identidade Medcare (split: formulário + imagem)
   Usado por /loginnovo e pelas telas funcionais (facial, cartão, biometria).
   Classes prefixadas com .ln-  para não colidir com nada do app.
   ============================================================ */

.ln-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #eef2f6;
    background-image:
        radial-gradient(ellipse at 15% 20%, rgba(15, 118, 110, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(51, 65, 85, 0.10) 0%, transparent 55%);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

.ln-card {
    width: 100%;
    max-width: 1040px;
    min-height: 640px;
    display: flex;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    animation: lnIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Lado do formulário ---------- */
.ln-form-side {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 44px;
    overflow-y: auto;
}

.ln-form { width: 100%; max-width: 400px; }

.ln-brand { margin-bottom: 28px; text-align: center; }
.ln-brand img { height: 42px; width: auto; }

.ln-head { text-align: center; }
.ln-head h1 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}
.ln-head p { color: #64748b; font-size: 15px; margin: 0 0 26px; }

/* Ícone redondo opcional (ex.: cadeado, cartão, digital, face) */
.ln-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #f0fdfa;
    border: 2px solid #ccfbf1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}
.ln-icon i { font-size: 42px; color: #0f766e; }

.ln-field { margin-bottom: 18px; }
.ln-field > label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}
.ln-link { float: right; font-weight: 500; color: #0f766e; text-decoration: none; }
.ln-link:hover { text-decoration: underline; }

.ln-input {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 0 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.ln-input:focus-within {
    border-color: #0f766e;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}
.ln-input i { color: #94a3b8; font-size: 18px; }
.ln-input input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 14px 0;
    font-size: 15px;
    color: #0f172a;
}
.ln-eye { border: 0; background: transparent; cursor: pointer; color: #94a3b8; padding: 4px; }
.ln-eye:hover { color: #475569; }

.ln-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin: 4px 0 24px;
    cursor: pointer;
}
.ln-remember input { width: 16px; height: 16px; accent-color: #0f766e; }

.ln-btn-primary {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 15px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #115e59);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.ln-btn-primary:hover:not(:disabled) {
    filter: brightness(1.06);
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.32);
    transform: translateY(-1px);
}
.ln-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.ln-btn-secondary {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 13px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.18s ease;
}
.ln-btn-secondary:hover { border-color: #0f766e; color: #0f766e; background: #f0fdfa; }

.ln-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    margin: 26px 0 20px;
}
.ln-divider::before, .ln-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.ln-divider span { padding: 0 14px; }

.ln-alt { display: flex; gap: 10px; }
.ln-alt-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s ease;
}
.ln-alt-btn:hover { border-color: #0f766e; color: #0f766e; background: #f0fdfa; }

.ln-foot { margin-top: 28px; text-align: center; font-size: 12px; color: #94a3b8; }

/* ---------- Lado da imagem ---------- */
.ln-visual-side {
    flex: 1 1 50%;
    padding: 16px;
    display: flex;
}
.ln-visual {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    /* cover: preenche todo o painel sem distorcer (corta o excesso), sem espaço em branco */
    background: #0f172a url('/assets/images/login-novo.jpg') center center / cover no-repeat;
}

@keyframes lnIn {
    from { opacity: 0; transform: translateY(16px) scale(0.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
    .ln-visual-side { display: none; }
    .ln-card { max-width: 480px; min-height: auto; }
    .ln-form-side { padding: 40px 32px; }
}

@media (max-width: 480px) {
    .ln-wrapper { padding: 12px; }
    .ln-card { border-radius: 20px; }
    .ln-form-side { padding: 32px 22px; }
}
