:root {
    --lc-navy: #073f54;
    --lc-navy-dark: #062f40;
    --lc-teal: #079a98;
    --lc-teal-dark: #087f82;
    --lc-text: #10263b;
    --lc-muted: #64748b;
    --lc-border: #dbe4ea;
    --lc-surface: #ffffff;
    --lc-page: #f4f7f9;
    --lc-danger: #c53030;
    --lc-shadow: 0 24px 70px rgba(15, 43, 58, .13);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body.lc-login-page {
    margin: 0;
    min-height: 100vh;
    color: var(--lc-text);
    background:
        radial-gradient(circle at 86% 8%, rgba(7,154,152,.08), transparent 26rem),
        var(--lc-page);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.lc-login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(480px, 1.08fr) minmax(440px, .92fr);
    background: var(--lc-surface);
}

.lc-login-visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--lc-navy);
}

.lc-login-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.lc-login-access {
    min-height: 100vh;
    padding: 48px clamp(30px, 6vw, 92px) 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.98);
}

.lc-login-card {
    width: 100%;
    max-width: 500px;
    padding: clamp(30px, 4vw, 48px);
    background: #fff;
    border: 1px solid #e5ebef;
    border-radius: 20px;
    box-shadow: var(--lc-shadow);
}

.lc-login-header { margin-bottom: 30px; }

.lc-login-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 28px;
}

.lc-login-mark {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, var(--lc-navy), #082a3c);
    box-shadow: 0 9px 22px rgba(7,63,84,.20);
    font-size: 26px;
    font-weight: 800;
}

.lc-login-brand-name {
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -.7px;
    color: #0b2940;
}

.lc-login-header h1 {
    margin: 0 0 9px;
    font-size: clamp(25px, 2.2vw, 32px);
    line-height: 1.2;
    letter-spacing: -.55px;
}

.lc-login-header p {
    margin: 0;
    max-width: 390px;
    color: var(--lc-muted);
    font-size: 15px;
    line-height: 1.65;
}

.lc-field { margin-bottom: 20px; }

.lc-field > label {
    display: block;
    margin: 0 0 8px;
    color: #173047;
    font-size: 14px;
    font-weight: 700;
}

.lc-input-wrap { position: relative; }

.lc-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    color: #718096;
    pointer-events: none;
}

.lc-input-icon svg,
.lc-password-toggle svg,
.lc-login-button svg,
.lc-security-note svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lc-input {
    width: 100%;
    height: 52px;
    padding: 0 46px;
    color: var(--lc-text);
    background: #fff;
    border: 1px solid var(--lc-border);
    border-radius: 10px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.lc-input::placeholder { color: #9aa8b6; }

.lc-input:hover { border-color: #bdcbd5; }

.lc-input:focus {
    border-color: var(--lc-teal);
    box-shadow: 0 0 0 4px rgba(7,154,152,.11);
}

.lc-password-input { padding-right: 50px; }

.lc-password-toggle {
    position: absolute;
    right: 9px;
    top: 50%;
    width: 36px;
    height: 36px;
    padding: 8px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    color: #718096;
    background: transparent;
    cursor: pointer;
}

.lc-password-toggle:hover { color: var(--lc-teal-dark); background: #eef9f8; }
.lc-eye-closed { display: none; }
.lc-password-toggle.is-visible .lc-eye-open { display: none; }
.lc-password-toggle.is-visible .lc-eye-closed { display: block; }

.lc-field-error,
.lc-validation-summary {
    display: block;
    margin-top: 6px;
    color: var(--lc-danger);
    font-size: 12.5px;
}

.lc-validation-summary:empty { display: none; }
.lc-validation-summary ul { margin: 0 0 18px; padding: 11px 14px 11px 30px; border-radius: 9px; background: #fff5f5; }

.lc-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 24px;
}

.lc-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #43566a;
    font-size: 14px;
    cursor: pointer;
}

.lc-check input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--lc-teal);
}

.lc-login-button {
    width: 100%;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--lc-teal), var(--lc-teal-dark));
    box-shadow: 0 12px 25px rgba(7,154,152,.19);
    font-weight: 750;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.lc-login-button svg { width: 20px; height: 20px; }
.lc-login-button:hover { transform: translateY(-1px); box-shadow: 0 15px 30px rgba(7,154,152,.25); filter: brightness(.98); }
.lc-login-button:active { transform: translateY(0); }

.lc-security-note {
    margin-top: 24px;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #718096;
    border-top: 1px solid #edf1f4;
    font-size: 12.5px;
}

.lc-security-note svg { width: 18px; height: 18px; color: var(--lc-teal-dark); }

.lc-login-footer {
    width: 100%;
    max-width: 500px;
    margin-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #8795a3;
    font-size: 12px;
}

.lc-login-toast {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 50;
    width: min(410px, calc(100vw - 32px));
    display: grid;
    grid-template-columns: 36px 1fr 28px;
    gap: 11px;
    align-items: start;
    padding: 15px;
    border: 1px solid #fed7d7;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(45,55,72,.18);
    animation: lcToastIn .24s ease-out;
}

.lc-login-toast-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: #e53e3e;
    font-weight: 800;
}

.lc-login-toast strong { display: block; margin: 1px 0 4px; font-size: 13px; }
.lc-login-toast p { margin: 0; color: #66788a; font-size: 12.5px; line-height: 1.45; }
.lc-toast-close { border: 0; background: transparent; color: #8795a3; font-size: 22px; line-height: 1; cursor: pointer; }

@keyframes lcToastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1100px) {
    .lc-login-shell { grid-template-columns: minmax(390px, .85fr) minmax(430px, 1.15fr); }
    .lc-login-access { padding-inline: 42px; }
}

@media (max-width: 860px) {
    body.lc-login-page {
        background: linear-gradient(160deg, var(--lc-navy) 0 31%, #f4f7f9 31% 100%);
    }

    .lc-login-shell {
        min-height: 100vh;
        display: block;
        padding: 58px 18px 28px;
        background: transparent;
    }

    .lc-login-visual { display: none; }

    .lc-login-access {
        min-height: auto;
        padding: 0;
        background: transparent;
    }

    .lc-login-card { max-width: 520px; padding: 34px 28px; border-radius: 18px; }
    .lc-login-brand { justify-content: center; margin-bottom: 24px; }
    .lc-login-header { text-align: center; }
    .lc-login-header p { margin-inline: auto; }
    .lc-login-footer { max-width: 520px; color: #66788a; }
}

@media (max-width: 520px) {
    .lc-login-shell { padding: 34px 12px 22px; }
    .lc-login-card { padding: 28px 20px; border-radius: 16px; }
    .lc-login-mark { width: 43px; height: 43px; border-radius: 12px; font-size: 23px; }
    .lc-login-brand-name { font-size: 26px; }
    .lc-login-header h1 { font-size: 23px; }
    .lc-login-header p { font-size: 14px; }
    .lc-login-footer { flex-direction: column; align-items: center; gap: 4px; text-align: center; }
    .lc-login-toast { top: 12px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* UIX-3 v2: branding real + ajuste de viewport */
.lc-login-logo-wrap {
    width: 68px;
    height: 54px;
    flex: 0 0 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #e5ebef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(7,63,84,.10);
}

.lc-login-logo {
    display: block;
    width: 100%;
    height: 100%;
    padding: 5px;
    object-fit: contain;
}

.lc-login-brand-copy { display: flex; flex-direction: column; min-width: 0; }
.lc-login-brand-subtitle { margin-top: 2px; color: var(--lc-muted); font-size: 11.5px; font-weight: 600; }

@media (min-width: 861px) {
    html, body { height: 100%; }
    body.lc-login-page { overflow: hidden; }
    .lc-login-shell, .lc-login-visual, .lc-login-access { height: 100dvh; min-height: 0; }
    .lc-login-access { overflow: auto; padding-top: clamp(18px, 4vh, 42px); padding-bottom: clamp(14px, 3vh, 26px); }
    .lc-login-card { padding: clamp(24px, 3.3vh, 42px) clamp(28px, 3vw, 46px); }
    .lc-login-header { margin-bottom: clamp(20px, 3vh, 30px); }
    .lc-login-brand { margin-bottom: clamp(18px, 2.6vh, 28px); }
    .lc-field { margin-bottom: clamp(14px, 2.1vh, 20px); }
    .lc-login-options { margin-bottom: clamp(16px, 2.5vh, 24px); }
    .lc-security-note { margin-top: clamp(16px, 2.5vh, 24px); padding-top: clamp(14px, 2.2vh, 20px); }
    .lc-login-footer { margin-top: clamp(12px, 2.2vh, 22px); }
}

@media (min-width: 861px) and (max-height: 760px) {
    .lc-login-card { max-width: 470px; padding: 22px 30px; border-radius: 16px; }
    .lc-login-brand { margin-bottom: 15px; }
    .lc-login-logo-wrap { width: 60px; height: 46px; flex-basis: 60px; }
    .lc-login-brand-name { font-size: 25px; }
    .lc-login-header { margin-bottom: 18px; }
    .lc-login-header h1 { font-size: 25px; }
    .lc-login-header p { font-size: 13.5px; line-height: 1.45; }
    .lc-field { margin-bottom: 13px; }
    .lc-input { height: 46px; }
    .lc-login-options { margin-bottom: 15px; }
    .lc-login-button { height: 47px; }
    .lc-security-note { margin-top: 14px; padding-top: 13px; }
    .lc-login-footer { margin-top: 10px; }
}

@media (max-width: 860px) {
    .lc-login-brand { align-items: center; }
    .lc-login-logo-wrap { width: 84px; height: 62px; flex-basis: 84px; }
    .lc-login-brand-copy { text-align: left; }
}

@media (max-width: 520px) {
    body.lc-login-page { min-height: 100dvh; }
    .lc-login-shell { min-height: 100dvh; padding: 24px 12px 18px; }
    .lc-login-card { padding: 24px 20px; }
    .lc-login-brand { gap: 10px; margin-bottom: 20px; }
    .lc-login-logo-wrap { width: 76px; height: 56px; flex-basis: 76px; border-radius: 12px; }
    .lc-login-brand-name { font-size: 24px; }
    .lc-login-brand-subtitle { font-size: 10.5px; }
    .lc-login-header { margin-bottom: 24px; }
    .lc-field { margin-bottom: 16px; }
    .lc-login-options { margin-bottom: 18px; }
    .lc-security-note { margin-top: 18px; padding-top: 16px; }
}

/* =========================================================
   UIX-7F - Login Polish
   Professional desktop composition without cropping the hero.
   ========================================================= */
@media (min-width: 901px) {
    .lc-login-shell {
        grid-template-columns: minmax(520px, 1.12fr) minmax(460px, .88fr);
        min-height: 100dvh;
        background: #f7fafb;
    }

    .lc-login-visual {
        min-height: 100dvh;
        padding: clamp(20px, 2vw, 34px);
        display: flex;
        align-items: center;
        justify-content: center;
        background:
            radial-gradient(circle at 18% 16%, rgba(27, 196, 185, .22), transparent 34%),
            radial-gradient(circle at 88% 82%, rgba(5, 104, 129, .34), transparent 38%),
            linear-gradient(145deg, #052f40 0%, #064f63 52%, #073f54 100%);
    }

    .lc-login-visual::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(90deg, transparent 70%, rgba(3, 31, 43, .18));
    }

    .lc-login-hero-image {
        position: relative;
        inset: auto;
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: calc(100dvh - clamp(40px, 4vw, 68px));
        object-fit: contain;
        object-position: center;
        border-radius: 24px;
        box-shadow: 0 28px 80px rgba(0, 23, 34, .28);
        z-index: 1;
    }

    .lc-login-access {
        min-height: 100dvh;
        padding: 34px clamp(34px, 5vw, 76px) 22px;
        background:
            radial-gradient(circle at 92% 8%, rgba(7,154,152,.07), transparent 24rem),
            #f8fafb;
    }

    .lc-login-card {
        max-width: 520px;
        padding: clamp(30px, 3.2vw, 44px);
        border-color: #e1e9ee;
        border-radius: 22px;
        box-shadow: 0 24px 64px rgba(15, 43, 58, .11);
    }
}

@media (min-width: 901px) and (max-height: 760px) {
    .lc-login-visual { padding: 16px; }
    .lc-login-hero-image { max-height: calc(100dvh - 32px); border-radius: 18px; }
    .lc-login-access { padding-top: 18px; padding-bottom: 14px; }
    .lc-login-card { padding-top: 26px; padding-bottom: 26px; }
    .lc-login-brand { margin-bottom: 20px; }
    .lc-login-header { margin-bottom: 22px; }
}
