:root {
  --primary: #041E42;
  --secondary: #013559;
  --accent: #1D4F91;
  --bg: #ffffff;
  --text: #0f1e3a;
  --muted: #6c86aa;
  --card: #ffffff;
  --border: #ABCAE9;
  --divider: #e8eff7;
  --ok: #1e824c;
  --soon: #a86407;
  --danger: #b42318;
  --shadow: 0 10px 28px rgba(0, 0, 0, .08);
  --radius: 16px;
  --gutter: clamp(10px, 2vw, 24px);
  --pad: clamp(12px, 2.2vw, 22px);
  --gap: clamp(.6rem, 1.2vw, 1rem);
  --fs-body: clamp(13px, 1.3vw, 16px);
  --fs-small: clamp(12px, 1.1vw, 14px);
  --fs-h2: clamp(20px, 2.4vw, 26px);
  --fs-h1: clamp(26px, 3vw, 36px);
  --focus: #cfe3fb;
  --page-w: min(420px, 100% - var(--gutter)*2);
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: 'Tajawal', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 80% -10%, #f5f9ff 20%, #fff 60%);
  color: var(--text);
  font-size: var(--fs-body);
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: var(--page-w);
  padding: var(--gutter);
  text-align: center
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem
}

.brand__logo {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-family: 'Inter', sans-serif
}

.brand__title {
  font-weight: 800;
  color: var(--primary);
  font-size: var(--fs-h1)
}

.subtitle {
  margin-top: .15rem;
  color: var(--muted);
  font-weight: 600;
  font-size: var(--fs-small)
}

.card {
  margin-top: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: var(--pad);
  display: grid;
  gap: var(--gap);
  box-shadow: var(--shadow);
  text-align: right
}

.row {
  display: grid;
  gap: .7rem
}

.label {
  font-size: var(--fs-small);
  color: #0f2b55;
  font-weight: 800
}

.input-group {
  display: grid;
  gap: .35rem
}

.input-box {
  width: 100%;
  min-height: 44px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .7rem .8rem;
  font-size: 14px;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04) inset;
  transition: border-color .15s, box-shadow .15s
}

.input-box:focus {
  outline: 2px solid var(--focus);
  border-color: #86b5ea;
  box-shadow: 0 0 0 2px #e9f3ff inset
}

.action-btn {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  transition: .15s
}

.action-btn:hover {
  transform: translateY(-1px);
  background: #164074
}

.action-btn:focus {
  outline: 3px solid var(--focus)
}

.muted {
  color: var(--muted);
  font-size: var(--fs-small);
  text-align: center
}

.hidden {
  display: none
}

.msg,
.err {
  padding: .7rem .8rem;
  border-radius: 10px;
  font-size: 13px;
  border: 1px solid;
  line-height: 1.6
}

.msg {
  background: #eef7ff;
  border-color: var(--border);
  color: #143861
}

.err {
  background: #fdeeee;
  border-color: #f5c2c7;
  color: var(--danger)
}

a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  font-size: var(--fs-small)
}

a:hover {
  text-decoration: underline
}

.hint {
  font-size: 12px;
  color: var(--muted)
}

@media(max-width:420px) {
  .container {
    padding: 12px
  }
}