/* Page de connexion (Views/Login/Index.cshtml) — page autonome, sans le layout du site.
   Palette reprise du logo Cybsecure : marine #031f2e, turquoise #5bc4b0. */

:root {
    --lg-navy: #031f2e;
    --lg-navy-2: #06304a;
    --lg-teal: #5bc4b0;
    --lg-teal-strong: #0b8a78;   /* boutons / focus : contraste suffisant avec du texte blanc */
    --lg-ink: #10222f;
    --lg-muted: #667085;
    --lg-line: #e4e7ec;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
    font-family: "Segoe UI", "Inter", -apple-system, system-ui, "Helvetica Neue", Arial, sans-serif;
    color: var(--lg-ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

.lg-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

/* ─── Panneau de gauche : marque ────────────────────────────────────────── */
.lg-brand {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(ellipse at 20% 15%, rgba(91,196,176,.22), transparent 55%),
        radial-gradient(ellipse at 90% 95%, rgba(13,110,253,.18), transparent 50%),
        linear-gradient(155deg, var(--lg-navy) 0%, var(--lg-navy-2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
}
/* trame de points discrète */
.lg-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 75%);
    pointer-events: none;
}

/* Les anneaux restent en haut à droite : le titre et la liste en dessous doivent
   rester parfaitement lisibles (rien ne passe derrière le texte). */
.lg-rings {
    position: absolute;
    right: -110px;
    top: -50px;
    width: min(500px, 85%);
    aspect-ratio: 1;
    pointer-events: none;
    opacity: .95;
}
@media (max-height: 760px) {
    .lg-rings { opacity: .35; }
}
.lg-rings svg { width: 100%; height: 100%; overflow: visible; }
.lg-rings .ring {
    fill: none;
    transform-box: view-box;
    transform-origin: 50% 50%;
}
.lg-rings .guide { stroke: rgba(255,255,255,.07); stroke-width: 1.5; }
.lg-rings .r1 { stroke: var(--lg-teal); stroke-width: 9;  animation: lg-spin 46s linear infinite; }
.lg-rings .r2 { stroke: #fff;            stroke-width: 9;  opacity: .9; animation: lg-spin-rev 34s linear infinite; }
.lg-rings .r3 { stroke: var(--lg-teal); stroke-width: 16; animation: lg-spin 22s linear infinite; }
.lg-rings .dot { fill: #fff; }
@keyframes lg-spin     { to { transform: rotate(360deg); } }
@keyframes lg-spin-rev { to { transform: rotate(-360deg); } }

.lg-brand-top,
.lg-brand-bottom { position: relative; z-index: 1; }

.lg-brand-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.92);
}
.lg-brand-name i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lg-teal);
    box-shadow: 0 0 0 4px rgba(91,196,176,.25);
}

.lg-headline {
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0 0 14px;
    max-width: 14em;
}
.lg-headline span { color: var(--lg-teal); }
.lg-lead {
    margin: 0 0 30px;
    font-size: 16px;
    color: rgba(255,255,255,.72);
    max-width: 30em;
    line-height: 1.55;
}

.lg-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 30em; }
.lg-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14.5px;
    color: rgba(255,255,255,.88);
}
.lg-feat-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    color: var(--lg-teal);
    backdrop-filter: blur(4px);
}

.lg-tagline {
    margin-top: 40px;
    font-size: 12px;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--lg-teal);
}

/* ─── Panneau de droite : formulaire ────────────────────────────────────── */
.lg-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
    background: #fff;
}
.lg-card { width: 100%; max-width: 380px; }

.lg-logo { display: block; width: 210px; max-width: 70%; height: auto; margin: 0 0 36px -6px; }

.lg-title { margin: 0 0 6px; font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.lg-sub { margin: 0 0 26px; font-size: 14.5px; color: var(--lg-muted); }

.lg-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.4;
}
.lg-alert svg { flex-shrink: 0; margin-top: 1px; }
.lg-alert-error { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; }
.lg-alert-ok    { background: #ecfdf3; border: 1px solid #abefc6; color: #067647; }

.lg-field { margin-bottom: 16px; }
.lg-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #344054; }

.lg-input-wrap { position: relative; }
.lg-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
    pointer-events: none;
    transition: color .15s ease;
}
.lg-input {
    width: 100%;
    height: 46px;
    padding: 0 44px 0 42px;
    font: inherit;
    font-size: 15px;
    color: var(--lg-ink);
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.lg-input::placeholder { color: #98a2b3; }
.lg-input:focus {
    outline: none;
    border-color: var(--lg-teal-strong);
    box-shadow: 0 0 0 4px rgba(91,196,176,.28);
}
.lg-input-wrap:focus-within .lg-input-icon { color: var(--lg-teal-strong); }

.lg-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #98a2b3;
    cursor: pointer;
}
.lg-eye:hover { background: #f2f4f7; color: #475467; }
.lg-eye:focus-visible { outline: 2px solid var(--lg-teal-strong); }

.lg-caps { display: none; margin-top: 6px; font-size: 12px; color: #b54708; }
.lg-caps.show { display: block; }

.lg-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    margin-top: 22px;
    border: none;
    border-radius: 10px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(180deg, #10a08b 0%, var(--lg-teal-strong) 100%);
    box-shadow: 0 6px 16px -6px rgba(11,138,120,.6);
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.lg-submit:hover { filter: brightness(1.05); box-shadow: 0 8px 20px -6px rgba(11,138,120,.7); }
.lg-submit:active { transform: translateY(1px); }
.lg-submit:focus-visible { outline: 3px solid rgba(91,196,176,.5); outline-offset: 2px; }
.lg-submit:disabled { opacity: .75; cursor: progress; }
.lg-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lg-rot .7s linear infinite;
}
.lg-submit.loading .lg-spinner { display: inline-block; }
@keyframes lg-rot { to { transform: rotate(360deg); } }

.lg-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #f2f4f7;
    font-size: 12.5px;
    color: #98a2b3;
}

/* ─── Petits écrans : le panneau de marque devient une bande ────────────── */
@media (max-width: 900px) {
    .lg-shell { grid-template-columns: 1fr; }
    .lg-brand { display: none; }
    .lg-panel { align-items: flex-start; padding-top: 32px; }
    .lg-logo { margin-bottom: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    .lg-rings .ring { animation: none !important; }
    .lg-submit, .lg-input { transition: none; }
}
