* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; font-family: -apple-system, "SF Pro Display", "Inter", BlinkMacSystemFont, sans-serif;
  overflow: hidden;
}
.demo-banner {
  background: rgba(0,0,0,0.85); color: #F3F3F3; text-align: center; padding: 8px 16px; font-size: 0.78rem;
  position: relative; z-index: 50;
}
.demo-banner a { color: #8AB4FF; font-weight: 600; text-decoration: underline; }

.aw-screen {
  position: relative; height: calc(100vh - 33px); min-height: 560px; overflow: hidden;
  background: linear-gradient(125deg, #232C63, #6C3A8C, #C4577A, #E98A4D);
  background-size: 320% 320%;
  animation: awDrift 18s ease-in-out infinite;
}
@keyframes awDrift {
  0% { background-position: 0% 30%; }
  50% { background-position: 100% 70%; }
  100% { background-position: 0% 30%; }
}
.aw-screen::before {
  content: ""; position: absolute; inset: 0; backdrop-filter: blur(60px) saturate(140%);
  background: rgba(10,10,20,0.18);
}

.aw-breakout { position: absolute; top: 18px; right: 20px; z-index: 30; }
.aw-breakout a {
  background: rgba(255,255,255,0.16); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 7px 14px;
  border-radius: 100px; text-decoration: none; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.25);
}
.aw-breakout a:hover { background: rgba(255,255,255,0.26); }

.aw-clock {
  position: absolute; top: 46px; left: 0; right: 0; text-align: center; color: #fff; z-index: 2;
  opacity: 0; transform: translateY(-6px); animation: awIn 0.7s ease 0.1s forwards;
}
.aw-clock .time { font-size: 4.2rem; font-weight: 300; line-height: 1; letter-spacing: -0.02em; text-shadow: 0 2px 24px rgba(0,0,0,0.25); }
.aw-clock .date { font-size: 1rem; font-weight: 500; opacity: 0.9; margin-top: 6px; text-transform: capitalize; }

.aw-stage {
  position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding-top: 40px; transition: opacity 0.4s ease, transform 0.4s ease;
}
.aw-stage.is-hidden { opacity: 0; transform: scale(0.97); pointer-events: none; }

.aw-avatar-wrap { position: relative; opacity: 0; transform: scale(0.85); animation: awIn 0.6s cubic-bezier(0.22,1,0.36,1) 0.35s forwards; }
.aw-avatar-ring {
  position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.5);
  animation: awPulse 2.6s ease-in-out infinite;
}
.aw-avatar {
  width: 108px; height: 108px; border-radius: 50%; background: linear-gradient(160deg, #F4D9A0, #D98A4D);
  display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: #4A2C0E;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35); font-weight: 600; position: relative; cursor: default;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
@keyframes awPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.06); }
}

.aw-name {
  color: #fff; font-size: 1.25rem; font-weight: 600; margin-top: 18px; text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  opacity: 0; animation: awIn 0.6s ease 0.5s forwards;
}

.aw-field-wrap {
  margin-top: 18px; opacity: 0; transform: translateY(10px); animation: awIn 0.6s cubic-bezier(0.22,1,0.36,1) 0.7s forwards;
}
.aw-field {
  display: flex; align-items: center; width: 260px; background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.35); border-radius: 100px; padding: 4px 6px 4px 18px;
  backdrop-filter: blur(16px); transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.aw-field.focused { border-color: rgba(255,255,255,0.75); box-shadow: 0 0 0 5px rgba(255,255,255,0.12); background: rgba(255,255,255,0.22); }
.aw-field input {
  flex: 1; background: none; border: none; outline: none; color: #fff; font-size: 0.95rem; padding: 8px 0;
  font-family: inherit;
}
.aw-field input::placeholder { color: rgba(255,255,255,0.65); }
.aw-eye {
  background: none; border: none; color: rgba(255,255,255,0.75); cursor: pointer; padding: 6px; display: flex;
}
.aw-eye svg { width: 17px; height: 17px; }
.aw-eye .eye-off { display: none; }
.aw-eye.is-visible .eye-on { display: none; }
.aw-eye.is-visible .eye-off { display: block; }

.aw-submit {
  width: 34px; height: 34px; border-radius: 50%; border: none; background: rgba(255,255,255,0.9);
  color: #333; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}
.aw-submit:hover { background: #fff; transform: scale(1.05); }
.aw-submit svg { width: 15px; height: 15px; }
.aw-submit .spinner { display: none; width: 15px; height: 15px; border: 2px solid rgba(0,0,0,0.15); border-top-color: #333; border-radius: 50%; animation: awSpin 0.7s linear infinite; }
.aw-submit.is-loading .arrow { display: none; }
.aw-submit.is-loading .spinner { display: block; }
@keyframes awSpin { to { transform: rotate(360deg); } }

.aw-error {
  color: #FFD9D9; font-size: 0.82rem; margin-top: 12px; opacity: 0; height: 0; overflow: hidden;
  transition: opacity 0.2s ease;
}
.aw-error.show { opacity: 1; height: auto; }
.aw-field-wrap.shake { animation: awShake 0.4s ease; }
@keyframes awShake {
  10%, 90% { transform: translateX(-3px); } 20%, 80% { transform: translateX(5px); }
  30%, 50%, 70% { transform: translateX(-8px); } 40%, 60% { transform: translateX(8px); }
}

.aw-success {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; z-index: 5; opacity: 0; pointer-events: none; transition: opacity 0.5s ease;
}
.aw-success.show { opacity: 1; pointer-events: auto; }
.aw-check-circle {
  width: 84px; height: 84px; border-radius: 50%; background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.aw-check-circle svg { width: 40px; height: 40px; }
.aw-check-circle path {
  fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40;
}
.aw-success.show .aw-check-circle path { animation: awDraw 0.5s ease 0.15s forwards; }
@keyframes awDraw { to { stroke-dashoffset: 0; } }
.aw-success h2 { font-weight: 500; font-size: 1.4rem; margin: 0; }

@keyframes awIn { to { opacity: 1; transform: none; } }

@media (max-width: 560px) {
  .aw-clock .time { font-size: 3rem; }
}
