/* Qandeel Mail sign-in: warm cream, amber light, Shuala. Always bright. */
:root {
  --paper: #fbf7f0; --cream: #fff9ef; --ink: #1b1645; --ink-2: #3a3463; --muted: #736c8f; --line: #e9dfcf;
  --sand-2: #f7e6d1; --clay: #c8683a; --palm: #2f7a4e; --warn: #8a4b16; --warn-bg: #fdf0d8;
  --amber-200: #ffe6a8; --amber-300: #ffc85a; --amber-400: #f9b13a; --amber-500: #f29a1a; --amber-edge: #d9850f; --on-amber: #2a1a05;
  --font: "Parkinsans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}
:root[lang="ar"] { --font: "IBM Plex Sans Arabic", "Parkinsans", system-ui, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh; color: var(--ink); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased;
  background: radial-gradient(900px 520px at 50% 8%, rgba(255, 200, 90, .45), transparent 70%), radial-gradient(600px 400px at 0 100%, rgba(207, 110, 54, .12), transparent 70%), var(--paper);
  background-repeat: no-repeat;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--amber-400); outline-offset: 3px; border-radius: 14px; }
.boot { min-height: 100svh; display: grid; place-items: center; }
.boot img { width: 120px; height: 120px; object-fit: contain; animation: bob 2.4s ease-in-out infinite; }

.login { min-height: 100svh; display: grid; place-items: center; padding: 20px 16px; position: relative; }
.lang {
  position: absolute; top: 16px; inset-inline-end: 16px; min-height: 40px; padding: 6px 16px; border: 1.5px solid var(--line);
  border-radius: 999px; background: rgba(255, 255, 255, .8); font-weight: 600; color: var(--ink-2);
}
.lang:hover { background: #fff; border-color: var(--amber-300); }
.card {
  width: min(420px, 100%); display: grid; justify-items: center; gap: 14px; padding: 26px 24px 28px; text-align: center;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: 32px;
  box-shadow: 0 1px 0 #fff inset, 0 30px 60px -34px rgba(90, 50, 10, .45);
}
.stage { position: relative; width: 190px; height: 190px; display: grid; place-items: center; margin-top: -6px; }
.stage::before {
  content: ""; position: absolute; inset: 14px; border-radius: 50%;
  background: radial-gradient(circle, var(--amber-200) 0%, rgba(255, 230, 168, 0) 70%); animation: glow 3.2s ease-in-out infinite;
}
.stage img { position: relative; width: 170px; height: 170px; object-fit: contain; filter: drop-shadow(0 16px 14px rgba(120, 60, 10, .2)); animation: bob 3s ease-in-out infinite; }
.stage.pop img { animation: pop .6s var(--ease-pop); }
@keyframes bob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-7px) } }
@keyframes glow { 0%, 100% { transform: scale(.92); opacity: .75 } 50% { transform: scale(1.08); opacity: 1 } }
@keyframes pop { 0% { transform: scale(.8) rotate(-4deg) } 60% { transform: scale(1.08) rotate(2deg) } 100% { transform: scale(1) } }
.wordmark { height: 30px; width: auto; }
h1 { margin: 0; font: 700 clamp(24px, 6vw, 30px)/1.25 var(--font); letter-spacing: -.01em; }
.sub { margin: -6px 0 0; color: var(--muted); min-height: 1.4em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 10px 22px;
  border: 0; border-radius: 999px; font-weight: 700; font-size: 17px; transition: transform .12s var(--ease-pop), box-shadow .12s;
}
.btn:active:not(:disabled) { transform: translateY(3px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--primary { background: var(--amber-400); color: var(--on-amber); box-shadow: 0 5px 0 var(--amber-edge); }
.btn--primary:active:not(:disabled) { box-shadow: 0 1px 0 var(--amber-edge); }
.btn--quiet { min-height: 46px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.btn--quiet:hover { background: var(--sand-2); }
.btn .ico { width: 24px; height: 24px; flex: none; }
.field {
  width: 100%; min-height: 56px; padding: 10px 18px; border: 2px solid var(--line); border-radius: 20px; background: #fff;
  font-size: 18px; text-align: center;
}
.field:focus { outline: 0; border-color: var(--amber-400); box-shadow: 0 0 0 5px rgba(249, 177, 58, .22); }
.code { letter-spacing: .28em; font-family: Consolas, Menlo, monospace; font-size: 26px; direction: ltr; }
.msg { margin: 0; min-height: 1.4em; font-size: 15px; color: var(--warn); }
.msg.ok { color: var(--palm); }
.stack { width: 100%; display: grid; gap: 12px; }

@media (max-width: 420px) { .card { padding: 20px 16px 22px; border-radius: 28px; } .stage { width: 160px; height: 160px; } .stage img { width: 144px; height: 144px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
