/* ═══════════════════════════════════════════════════════════════════
   screens.css — Plymouth boot, GDM greeter, lock screen, shutdown
   ═══════════════════════════════════════════════════════════════════ */

.screen { position: absolute; inset: 0; overflow: hidden; }

/* ══════════════════════ plymouth (boot splash) ══════════════════════ */
.plymouth {
  background: #0d0208;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 40px;
  transition: opacity 520ms var(--ease);
}
.plymouth.gone { opacity: 0; pointer-events: none; }
.shell:not(.booting):not(.rebooting) .plymouth { display: none; }
.ply-logo { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.ply-wordmark { display: flex; align-items: center; gap: 14px; }
.ply-wordmark .cof { width: 54px; height: 54px; }
.ply-wordmark .word { font-size: 42px; font-weight: 300; color: #fff; letter-spacing: -.5px; }
.ply-dots { display: flex; gap: 12px; }
.ply-dots i {
  width: 11px; height: 11px; border-radius: 999px; background: #5c2d4b;
  animation: ply-dot 1.5s var(--ease-in-out) infinite;
}
.ply-dots i:nth-child(2) { animation-delay: .18s; }
.ply-dots i:nth-child(3) { animation-delay: .36s; }
.ply-dots i:nth-child(4) { animation-delay: .54s; }
.ply-dots i:nth-child(5) { animation-delay: .72s; }
@keyframes ply-dot {
  0%, 100% { background: #4a2440; transform: scale(.85); }
  40% { background: #E95420; transform: scale(1.12); }
}
.ply-vendor {
  position: absolute; bottom: 46px; left: 0; right: 0; text-align: center;
  color: rgba(255,255,255,.42); font-size: 13px; letter-spacing: .4px;
}
.ply-messages {
  position: absolute; top: 22px; left: 22px; right: 22px;
  font-family: var(--font-mono); font-size: 12.5px; color: rgba(255,255,255,.5);
  display: flex; flex-direction: column; gap: 1px; max-height: 40%; overflow: hidden;
}
.ply-messages .ok { color: #4CC38A; }
.ply-messages .warn { color: #E5A50A; }

/* power-off screen */
.poweroff {
  position: absolute; inset: 0; background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  color: rgba(255,255,255,.6);
  animation: fade-in 700ms var(--ease);
  z-index: 990;
}
.poweroff .po-btn {
  width: 78px; height: 78px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14);
  transition: background var(--t-med), transform var(--t-med), box-shadow var(--t-med);
}
.poweroff .po-btn:hover { background: var(--accent-bg); transform: scale(1.06); box-shadow: 0 0 30px rgba(233,84,32,.5); }
.poweroff .po-label { font-size: 14px; }

/* ══════════════════════ GDM greeter ══════════════════════ */
.greeter {
  display: flex; flex-direction: column;
  background: #1b0f18;
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
.greeter.gone { opacity: 0; pointer-events: none; }
.greeter-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(1px) brightness(.55) saturate(1.05);
  transform: scale(1.03);
}
.greeter-topbar {
  position: relative; height: var(--topbar-h); flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px; background: rgba(0,0,0,.5); color: #fff; font-size: 13.5px;
  backdrop-filter: blur(10px);
}
.greeter-main {
  position: relative; flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 22px; padding-bottom: 60px;
}
.greeter-clock { text-align: center; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.greeter-clock .gc-time { font-size: 74px; font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.greeter-clock .gc-date { font-size: 17px; opacity: .85; margin-top: 8px; }
.greeter-user {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: rgba(24,24,24,.55); backdrop-filter: blur(18px);
  padding: 26px 34px; border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.09);
  animation: dialog-in 360ms var(--ease-out);
  min-width: 320px;
}
.greeter-user .gu-name { font-size: 19px; color: #fff; }
.greeter-user .gu-hint { font-size: 13px; color: rgba(255,255,255,.65); }
.greeter-pass {
  display: flex; align-items: center; gap: 8px;
  width: 100%; min-height: 38px; padding: 0 12px; border-radius: 999px;
  background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  transition: box-shadow var(--t-med), background var(--t-med);
}
.greeter-pass:focus-within { background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.greeter-pass input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font-size: 15px;
  letter-spacing: .12em;
}
.greeter-pass input::placeholder { color: rgba(255,255,255,.6); letter-spacing: normal; }
.greeter-pass.shake { animation: shake 380ms var(--ease); }
@keyframes shake {
  0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); }
}
.greeter-error { font-size: 13px; color: #ff9b8f; min-height: 18px; }
.greeter-users { display: flex; gap: 16px; }
.greeter-session {
  position: absolute; bottom: 18px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  color: rgba(255,255,255,.72); font-size: 13px;
}
.greeter-spinner { display: flex; flex-direction: column; align-items: center; gap: 16px; color: #fff; }

/* ══════════════════════ lock screen ══════════════════════ */
.lockscreen {
  display: flex; align-items: center; justify-content: center;
  background: #12060f;
  transition: opacity 400ms var(--ease);
}
.lockscreen-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.6) saturate(1.05);
  transition: filter 500ms var(--ease), transform 600ms var(--ease-out);
}
.lockscreen.unlocking .lockscreen-bg { filter: brightness(.85); transform: scale(1.02); }
.lockscreen-topbar {
  position: absolute; top: 0; left: 0; right: 0; height: var(--topbar-h);
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 0 10px; color: #fff; background: rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
}
.lock-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.15) 40%, rgba(0,0,0,.5)); }
.lock-clock {
  position: relative; text-align: center; color: #fff;
  text-shadow: 0 3px 18px rgba(0,0,0,.55);
  transition: transform 420ms var(--ease-out), opacity 300ms;
}
.lock-clock .lc-time { font-size: clamp(64px, 11vw, 128px); font-weight: 200; line-height: .95; font-variant-numeric: tabular-nums; }
.lock-clock .lc-date { font-size: 20px; margin-top: 10px; opacity: .9; }
.lock-clock .lc-hint { margin-top: 26px; font-size: 13.5px; opacity: .7; }
.lock-notifs { margin-top: 26px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.lock-notif {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px;
  background: rgba(20,20,20,.55); backdrop-filter: blur(12px);
  color: #fff; font-size: 13px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
  max-width: 420px;
}
.lock-notif img { width: 18px; height: 18px; }
.lock-notif .ln-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lockscreen.raised .lock-clock { transform: translateY(-14vh) scale(.72); }
.lock-auth {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -20%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  opacity: 0; pointer-events: none;
  transition: opacity 300ms var(--ease), transform 380ms var(--ease-out);
  background: rgba(24,24,24,.55); backdrop-filter: blur(18px);
  padding: 26px 32px; border-radius: 18px; min-width: 320px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.09);
}
.lockscreen.raised .lock-auth { opacity: 1; pointer-events: auto; transform: translate(-50%, 6%); }

/* suspend / blank */
.blank-screen {
  position: absolute; inset: 0; background: #000; z-index: 995;
  display: grid; place-items: center; color: rgba(255,255,255,.25); font-size: 14px;
  animation: fade-in 900ms var(--ease);
}

/* ══════════════════════ shared branding mark ══════════════════════ */
.cof-mark { display: block; }
