:root {
  --bg: #0f1420;
  --card: #1a2030;
  --accent: #4f8cff;
  --accent-2: #2ee6a6;
  --text: #e8edf7;
  --muted: #8a94a8;
  --error: #ff6b6b;
  --border: #2a3245;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, #1b2740, var(--bg));
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  width: 360px;
  max-width: 90vw;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.brand .logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  font-weight: 800; color: #06121f;
}
.brand h1 { font-size: 18px; margin: 0; letter-spacing: .2px; }

label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  background: #11192a;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color .15s;
}
input:focus { border-color: var(--accent); }

input.code {
  text-align: center;
  letter-spacing: 8px;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

button {
  margin-top: 20px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #6aa1ff);
  color: #04101f;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
button:hover { filter: brightness(1.06); }

.hint { font-size: 12.5px; color: var(--muted); margin-top: 16px; line-height: 1.5; }
.error {
  margin-top: 14px;
  background: rgba(255, 107, 107, .12);
  border: 1px solid rgba(255, 107, 107, .4);
  color: var(--error);
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13px;
}

/* ---- Flag screen ---- */
.flag-box {
  margin-top: 18px;
  background: #0c1322;
  border: 1px dashed var(--accent-2);
  color: var(--accent-2);
  padding: 14px;
  border-radius: 10px;
  text-align: center;
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 16px;
  word-break: break-all;
  user-select: all;
}

/* ---- Phone mockup (right side of the screen) ---- */
.phone {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 250px;
  height: 510px;
  background: #05080f;
  border: 10px solid #11151d;
  border-radius: 40px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6), inset 0 0 0 2px #1d2330;
  overflow: hidden;
}
.phone .notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 24px;
  background: #11151d;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.phone .screen {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #1d2a4a, #0a1426 60%, #0a0f1a);
  padding: 44px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.phone .time { font-size: 40px; font-weight: 300; margin-top: 8px; letter-spacing: 1px; }
.phone .date { font-size: 12px; color: var(--muted); margin-bottom: 22px; }

.notification {
  width: 100%;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  padding: 12px 13px;
  animation: pop .5s ease both;
}
.notification .head {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: #c7d2e6; margin-bottom: 6px;
}
.notification .app-icon {
  width: 18px; height: 18px; border-radius: 5px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.notification .title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.notification .body { font-size: 12px; color: #d7deec; line-height: 1.35; }
.notification .code {
  margin-top: 8px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 6px;
  color: #fff;
  text-align: center;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(-8px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 820px) {
  .phone { position: static; transform: none; margin: 24px auto 0; }
  body { flex-direction: column; padding: 24px 12px; }
}
