/* Page de connexion OpenWings OFFICE */
:root { --ink: #0B1B2B; --amber: #D5822F; --paper: #F1EFEA; --err: #C0503A; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body.lg { font-family: 'Red Hat Display', -apple-system, system-ui, sans-serif; color: var(--paper); background: var(--ink); overflow: hidden; display: grid; place-items: center; min-height: 100dvh; }
.mono { font-family: 'Red Hat Mono', ui-monospace, monospace; }
#sky { position: fixed; inset: 0; z-index: 0; }
.lg-glow { position: fixed; inset: auto -20% -40% -20%; height: 70%; background: radial-gradient(ellipse at center, rgba(213,130,47,.22), transparent 60%); z-index: 0; pointer-events: none; }

.lg-card {
  position: relative; z-index: 1; width: min(420px, calc(100vw - 32px)); padding: 34px 32px 22px;
  border-radius: 22px; background: rgba(11, 27, 43, .9); border: 1px solid rgba(241, 239, 234, .14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .25s ease-out; animation: rise .7s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.lg-card.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { translate: -8px 0; } 40%, 80% { translate: 8px 0; } }

.lg-brand { text-align: center; margin-bottom: 22px; }
.lg-word { font-size: 34px; letter-spacing: -1px; font-weight: 400; line-height: 1; }
.lg-word b { font-weight: 800; }
.lg-rule { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 7px; }
.lg-rule i { width: 46px; height: 2px; background: var(--paper); opacity: .8; }
.lg-rule em { width: 22px; height: 3px; background: var(--amber); }
.lg-rule span { font-size: 11px; letter-spacing: .55em; font-weight: 500; padding-left: .55em; }
.lg-office { display: inline-block; margin-top: 14px; padding: 4px 12px; border-radius: 99px; font: 700 11px 'Red Hat Display', sans-serif; letter-spacing: .4em; padding-left: calc(12px + .4em); color: var(--ink); background: var(--amber); box-shadow: 0 0 24px rgba(213, 130, 47, .45); }

h1 { font-size: 22px; margin: 0 0 4px; font-weight: 700; }
.lg-sub { margin: 0 0 18px; font-size: 13.5px; line-height: 1.45; color: rgba(241, 239, 234, .72); }
.lg-err { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; font-size: 13px; background: rgba(192, 80, 58, .16); border: 1px solid rgba(192, 80, 58, .5); }
.lg-err svg { width: 18px; flex: none; fill: none; stroke: #F08C77; stroke-width: 2; stroke-linecap: round; }

.fld { position: relative; margin-bottom: 12px; }
.fld > svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; fill: none; stroke: rgba(241, 239, 234, .55); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; transition: stroke .2s; }
.fld input {
  width: 100%; height: 54px; padding: 20px 44px 6px 44px; font: 500 15px 'Red Hat Display', sans-serif; color: var(--paper);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(241, 239, 234, .16); border-radius: 12px; outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.fld label { position: absolute; left: 44px; top: 50%; translate: 0 -50%; font-size: 14.5px; color: rgba(241, 239, 234, .6); pointer-events: none; transition: all .18s ease; }
.fld input:focus, .fld input:not(:placeholder-shown) { background: rgba(255, 255, 255, .09); }
.fld input:focus { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(213, 130, 47, .18); }
.fld input:focus ~ label, .fld input:not(:placeholder-shown) ~ label { top: 15px; font-size: 11px; letter-spacing: .04em; color: var(--amber); }
.fld:focus-within > svg { stroke: var(--amber); }
.fld.bad input { border-color: var(--err); box-shadow: 0 0 0 4px rgba(192, 80, 58, .18); }
.eye { position: absolute; right: 8px; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; display: grid; place-items: center; }
.eye svg { width: 19px; fill: none; stroke: rgba(241, 239, 234, .6); stroke-width: 1.8; }
.eye:hover { background: rgba(255, 255, 255, .08); }
.eye.on svg { stroke: var(--amber); }
.caps { margin: -4px 0 10px; font-size: 12px; color: #F2B266; }
.meter { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); margin: -4px 0 12px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; transition: width .25s, background .25s; }

.go {
  position: relative; width: 100%; height: 52px; margin-top: 6px; border: 0; border-radius: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px; font: 700 15.5px 'Red Hat Display', sans-serif; color: var(--ink);
  background: linear-gradient(135deg, #E59A4C, var(--amber) 55%, #B9681F); box-shadow: 0 10px 28px rgba(213, 130, 47, .38);
  overflow: hidden; transition: transform .15s, box-shadow .2s;
}
.go::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); translate: -120% 0; transition: translate .7s; }
.go:hover::before { translate: 120% 0; }
.go:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(213, 130, 47, .5); }
.go:active { transform: translateY(1px); }
.go svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: translate .2s; }
.go:hover svg { translate: 4px 0; }
.go .spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(11, 27, 43, .25); border-top-color: var(--ink); animation: spin .8s linear infinite; }
.go.busy svg { display: none; }
.go.busy .spin { display: block; }
.go.busy span::after { content: '…'; }
@keyframes spin { to { rotate: 360deg; } }

.lg-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(241, 239, 234, .1); font-size: 11px; color: rgba(241, 239, 234, .5); }
.lg-clock b { color: var(--paper); font-weight: 500; }

body[data-sky=day] .lg-card { background: rgba(11, 27, 43, .92); }
@media (max-width: 480px) { .lg-card { padding: 26px 20px 18px; border-radius: 18px; } .lg-word { font-size: 29px; } }
@media (prefers-reduced-motion: reduce) { .lg-card, .lg-card.shake { animation: none; } .go::before { display: none; } }
