/* 1. Boot Screen */
#boot-screen {
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 56px;
  z-index: 9800;
  transition: opacity 0.6s ease;
}

#boot-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.boot-logo {
  animation: boot-logo-in 0.8s var(--ease-win) both;
}

@keyframes boot-logo-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.boot-status-text {
  position: absolute;
  bottom: 18%;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* 2. OOBE Screen */
#oobe-screen {
  background: linear-gradient(135deg, #d8eafd 0%, #eef5ff 45%, #d6e4f8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9600;
  color: #1a1a1a;
  overflow: hidden;
  transition: opacity 0.6s ease;
}

.oobe-bg-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 25%, rgba(0, 120, 212, 0.18), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(96, 165, 250, 0.22), transparent 50%);
  animation: oobe-glow-drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes oobe-glow-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3%, -3%) scale(1.06); }
}

.oobe-card {
  position: relative;
  width: min(920px, 92vw);
  height: min(610px, 88vh);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(40px);
  border-radius: 14px;
  box-shadow: 0 28px 72px rgba(0, 45, 110, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.8);
  display: grid;
  grid-template-columns: 42% 58%;
  overflow: hidden;
  animation: oobe-card-in 0.55s var(--ease-win) both;
}

@keyframes oobe-card-in {
  from { opacity: 0; transform: scale(0.95) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.oobe-left {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: linear-gradient(180deg, rgba(235, 244, 255, 0.7) 0%, rgba(245, 249, 255, 0.3) 100%);
}

.oobe-illustration {
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: oobe-step-in 0.45s var(--ease-win) both;
}

.oobe-right {
  display: flex;
  flex-direction: column;
  padding: 48px 52px 56px 40px;
  overflow: hidden;
}

.oobe-step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  animation: oobe-step-in 0.4s var(--ease-win) both;
}

@keyframes oobe-step-in {
  from { opacity: 0; transform: translateX(22px); }
  to { opacity: 1; transform: translateX(0); }
}

.oobe-title {
  font-size: 26px;
  font-weight: 600;
  color: #111;
  margin-bottom: 10px;
  line-height: 1.25;
}

.oobe-subtitle {
  font-size: 14px;
  color: #555;
  margin-bottom: 22px;
  line-height: 1.5;
}

.oobe-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 6px;
  background: #fafafa;
}

.oobe-list-item {
  padding: 11px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s ease;
}

.oobe-list-item:hover {
  background: rgba(0, 103, 192, 0.08);
}

.oobe-list-item.selected {
  background: #0067c0;
  color: #fff;
  font-weight: 500;
}

.oobe-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-bottom: 2px solid #0067c0;
  border-radius: 6px;
  background: #fff;
  color: #111;
  outline: none;
  margin-bottom: 14px;
  transition: box-shadow 0.2s ease;
}

.oobe-input:focus {
  box-shadow: 0 0 0 3px rgba(0, 103, 192, 0.15);
}

.oobe-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f8f9fb;
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 8px;
  gap: 16px;
}

.oobe-toggle-row strong {
  display: block;
  font-size: 13.5px;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.oobe-toggle-row small {
  color: #666;
  font-size: 12px;
}

.win-switch {
  position: relative;
  width: 42px;
  height: 22px;
  flex-shrink: 0;
}

.win-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.win-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: #ccc;
  cursor: pointer;
  transition: background 0.2s ease;
}

.win-switch-track::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  left: 4px;
  top: 4px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s var(--ease-win);
}

.win-switch input:checked + .win-switch-track {
  background: #0067c0;
}

.win-switch input:checked + .win-switch-track::after {
  transform: translateX(20px);
}

.oobe-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  margin-top: auto;
}

.oobe-footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.oobe-btn-primary {
  min-width: 108px;
  padding: 9px 24px;
  background: #0067c0;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.oobe-btn-primary:hover {
  background: #005a9e;
}

.oobe-btn-primary:active {
  transform: scale(0.97);
}

.oobe-btn-ghost {
  padding: 8px 18px;
  background: rgba(0, 0, 0, 0.05);
  color: #222;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  font-size: 13.5px;
  cursor: pointer;
}

.oobe-btn-ghost:hover {
  background: rgba(0, 0, 0, 0.09);
}

.oobe-btn-link {
  background: none;
  border: none;
  color: #0067c0;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 6px;
}

.oobe-btn-link:hover {
  text-decoration: underline;
}

.oobe-bottom-bar {
  position: absolute;
  right: 20px;
  bottom: 14px;
  display: flex;
  gap: 14px;
  font-size: 15px;
  opacity: 0.7;
}

/* First Logon Animation ("Hi / Getting things ready for you") */
.oobe-hi-screen {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9700;
  color: #fff;
  overflow: hidden;
}

.oobe-hi-gradient {
  position: absolute;
  width: 120vmax;
  height: 120vmax;
  background: radial-gradient(circle, rgba(0, 114, 214, 0.55) 0%, rgba(16, 48, 128, 0.32) 35%, rgba(0, 0, 0, 0) 68%);
  animation: hi-breathe 6s ease-in-out infinite alternate;
}

@keyframes hi-breathe {
  0% { transform: scale(0.82); opacity: 0.65; filter: hue-rotate(0deg); }
  100% { transform: scale(1.18); opacity: 1; filter: hue-rotate(25deg); }
}

.oobe-hi-content {
  position: relative;
  text-align: center;
  z-index: 2;
  padding: 0 24px;
}

.oobe-hi-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: opacity 0.65s ease, transform 0.65s var(--ease-win);
}

.oobe-hi-title.fade {
  opacity: 0;
  transform: translateY(-10px);
}

.oobe-hi-sub {
  margin-top: 16px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  min-height: 26px;
  transition: opacity 0.6s ease;
}

.oobe-hi-footer {
  position: absolute;
  bottom: 48px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  z-index: 2;
}

/* 3. Lock Screen */
#lock-screen {
  z-index: 9200;
  color: #fff;
  overflow: hidden;
  transition: opacity 0.5s ease;
}

.lock-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/wallpapers/lock.jpg') center/cover no-repeat;
  transition: transform 0.6s var(--ease-win), filter 0.6s ease;
}

#lock-screen.login-mode .lock-bg {
  filter: blur(22px) brightness(0.75);
  transform: scale(1.06);
}

.lock-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 11vh;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.06) 50%, rgba(0,0,0,0.35) 100%);
  transition: transform 0.55s var(--ease-win), opacity 0.45s ease;
}

#lock-screen.login-mode .lock-cover {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.lock-clock-wrap {
  text-align: center;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.lock-time {
  font-size: clamp(72px, 9vw, 108px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -2px;
}

.lock-date {
  font-size: 22px;
  font-weight: 500;
  margin-top: 8px;
}

.lock-widgets-row {
  margin-top: auto;
  margin-bottom: 36px;
  display: flex;
  gap: 14px;
}

.lock-widget-card {
  background: rgba(25, 25, 30, 0.46);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 12px 18px;
  min-width: 170px;
}

.lw-title {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.lw-val {
  font-size: 16px;
  font-weight: 600;
  margin-top: 4px;
}

.lock-hint {
  margin-bottom: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  animation: pulse-hint 2.5s ease-in-out infinite;
}

@keyframes pulse-hint {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.lock-login {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  animation: login-fade-in 0.4s var(--ease-win) both;
}

@keyframes login-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.login-username {
  font-size: 28px;
  font-weight: 500;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.login-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(25, 25, 30, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 2px solid #60cdff;
  border-radius: 5px;
  overflow: hidden;
  width: 260px;
}

.login-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 9px 12px;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.login-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.login-input-wrap button {
  background: rgba(255, 255, 255, 0.14);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 16px;
}

.login-input-wrap button:hover {
  background: rgba(255, 255, 255, 0.25);
}

.login-btn {
  padding: 8px 34px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.login-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lock-bottom-actions {
  position: absolute;
  right: 28px;
  bottom: 24px;
  display: flex;
  gap: 10px;
}

.lock-icon-btn {
  padding: 8px 14px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}

.lock-icon-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* 4. Power Screen */
#power-screen {
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 9900;
  color: #fff;
}

.power-screen-text {
  font-size: 20px;
  font-weight: 400;
}

@media (max-width: 720px) {
  .oobe-card {
    grid-template-columns: 1fr;
    height: auto;
    max-height: 92vh;
  }
  .oobe-left { display: none; }
  .oobe-right { padding: 28px 24px 48px; }
}
