* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
 
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #fbfdff;
}

.phone {
  width: 390px;
  height: 844px;
  border-radius: 50px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 30px 80px rgba(0,0,0,0.8);
  background: #1565F5;
}
 
/* ── SPLASH ───────────────────────────── */
.splash {
  position: absolute;
  inset: 0;
  background: #1565F5;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}
 
.splash-brand {
  display: flex;
  align-items: center;
}
 
.splash-wordmark {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 38px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  opacity: 0;
  letter-spacing: -0.3px;
  /* margin-right set by JS */
}
 
/* ── LOGIN ────────────────────────────── */
.login {
  position: absolute;
  inset: 0;
  background: #EEF2FF;
  z-index: 10;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
}
.login.show { opacity: 1; pointer-events: all; }
 
.login-header {
  display: flex;
  align-items: center;
  padding: 72px 30px 0;
}
.login-wordmark {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 30px;
  color: #1565F5;
}
.login-sun-wrap { width: 46px; height: 46px; margin-left: 4px; flex-shrink: 0; }
 
.login-body {
  padding: 56px 28px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.welcome {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #1a1a2e;
  margin-bottom: 22px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .4s ease .3s, transform .4s ease .3s;
}
.login.show .welcome { opacity: 1; transform: none; }
 
.field-wrap {
  width: 100%; margin-bottom: 14px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .4s ease .45s, transform .4s ease .45s;
}
.login.show .field-wrap { opacity: 1; transform: none; }
 
input {
  width: 100%; padding: 17px 18px;
  border-radius: 13px; border: 1.5px solid #d5dcf5;
  background: #fff; font-family: 'Nunito Sans', sans-serif;
  font-size: 15px; color: #aaa; outline: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: border-color .2s, box-shadow .2s;
}
input:focus { border-color: #1565F5; box-shadow: 0 0 0 3px rgba(21,101,245,0.1); color: #333; }
 
.btn-wrap {
  width: 100%;
  opacity: 0; transform: translateY(10px);
  transition: opacity .4s ease .6s, transform .4s ease .6s;
}
.login.show .btn-wrap { opacity: 1; transform: none; }
 
button.cont {
  width: 100%; padding: 17px;
  border-radius: 13px; background: #1565F5;
  color: #fff; font-family: 'Nunito', sans-serif;
  font-weight: 700; font-size: 17px; border: none;
  cursor: pointer; letter-spacing: .3px;
  transition: background .2s, transform .1s;
}
button.cont:hover { background: #0f55e0; }
button.cont:active { transform: scale(0.98); }
 
.replay {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,0.13); color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 9px 22px; border-radius: 30px;
  font-family: 'Nunito Sans', sans-serif; font-size: 13px;
  cursor: pointer; backdrop-filter: blur(10px); z-index: 999;
}
.replay:hover { background: rgba(255,255,255,0.2); }