/* Page de connexion du WMS (Views/Account/QuickLogin.cshtml, layout _AnonymousLayout).
   Feuille autonome : la page ne charge ni Bootstrap ni AdminLTE. Couleurs de Content/variables.less. */

:root {
    --lg-field-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }
/* Safari iOS agrandit le texte en paysage sans cette règle (Bootstrap la pose sur les autres pages) */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body.lg-page {
    font-family: var(--wms-font);
    background: var(--wms-bg);
    color: var(--wms-text);
    min-height: 100vh;
    min-height: 100svh;
}

.lg { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }

.lg-head {
    background: var(--wms-primary);
    color: #fff;
    padding: 40px 24px 56px;
    text-align: center;
}

/* Logo bleu passé en blanc sur le bandeau */
.lg-logo { width: 190px; max-width: 70%; height: auto; display: block; margin: 0 auto 10px; filter: brightness(0) invert(1); }
.lg-app { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }

.lg-card {
    background: var(--wms-surface);
    width: calc(100% - 32px);
    max-width: 420px;
    margin: -32px auto 0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
}

.lg-title { font-size: 20px; font-weight: 650; margin: 0 0 16px; }

.lg-alert {
    display: flex; gap: 10px; align-items: flex-start;
    border-radius: 8px; padding: 12px; margin-bottom: 16px;
    font-size: 15px; line-height: 1.4;
}
.lg-alert i { margin-top: 2px; }
.lg-alert p { margin: 0; }
.lg-alert.is-error { background: var(--wms-error-bg); color: var(--wms-error); }
.lg-alert.is-warn { background: var(--wms-warn-bg); color: var(--wms-warn); }

.lg-field { margin-bottom: 14px; }
.lg-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }

.lg-input {
    display: flex; align-items: center;
    height: var(--lg-field-h);
    border: 2px solid var(--wms-border-strong); border-radius: 10px; background: #fff;
}
.lg-input:focus-within { border-color: var(--wms-primary); box-shadow: 0 0 0 3px rgba(0, 102, 153, .2); }
.lg-input.is-invalid { border-color: var(--wms-error); }
.lg-input > i { width: 44px; text-align: center; color: var(--wms-muted); flex: none; }
.lg-input input {
    flex: 1; min-width: 0; height: 100%;
    border: 0; outline: 0; background: transparent;
    font: inherit; font-size: 18px; color: var(--wms-text);
}

.lg-eye {
    width: 52px; height: 100%; flex: none;
    border: 0; background: transparent; color: var(--wms-muted);
    font-size: 18px; cursor: pointer; border-radius: 0 8px 8px 0;
}
.lg-eye:focus-visible { outline: 3px solid var(--wms-focus); outline-offset: -3px; }

.lg-hint { font-size: 13px; color: var(--wms-warn); margin-top: 6px; }
.lg-hint[hidden] { display: none; }

.lg-btn {
    width: 100%; height: var(--lg-field-h);
    border-radius: 10px; font: inherit; font-size: 18px; font-weight: 650;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    cursor: pointer;
}
.lg-btn:focus-visible { outline: 3px solid var(--wms-focus); outline-offset: 2px; }
.lg-btn-primary { background: var(--wms-primary); color: #fff; border: 0; }
.lg-btn-primary:active { background: var(--wms-primary-dark); }
.lg-btn-primary[disabled] { opacity: .75; cursor: progress; }
.lg-btn-google { background: #fff; color: var(--wms-text); border: 2px solid var(--wms-border-strong); font-size: 16px; font-weight: 600; }

.lg-sep {
    display: flex; align-items: center; gap: 12px;
    color: var(--wms-muted); font-size: 13px; margin: 16px 0;
}
.lg-sep::before, .lg-sep::after { content: ""; flex: 1; height: 1px; background: var(--wms-border-strong); }

.lg-blocked { text-align: center; padding: 8px 0; }
.lg-blocked > i { font-size: 36px; color: var(--wms-muted); margin-bottom: 12px; }
.lg-blocked p { margin: 0 0 8px; line-height: 1.45; }
.lg-blocked small { color: var(--wms-muted); }

.lg-foot {
    margin-top: auto; padding: 24px 16px 16px;
    display: flex; justify-content: space-between;
    font-size: 12px; color: var(--wms-muted);
}
.lg-net.is-ok { color: var(--wms-ok); }

.lg-spin { animation: lg-rot 1s linear infinite; }
@keyframes lg-rot { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lg-spin { animation: none; } }
