* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --teal: #2f87a1;
  --teal-dark: #2a7c95;
  --ink: #1c1c1e;
  --muted: #6b6b70;
  --link: #1f6feb;
  --radius: clamp(26px, 6vw, 34px);
}

html,
body {
  height: 100%;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background: #111;
  display: flex;
  justify-content: center;
  align-items: stretch;
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

.phone {
  position: relative;
  width: 100%;
  max-width: 540px;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(180deg, #f5d76e 0%, #eec34a 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  flex: 0 0 auto;
  min-height: clamp(300px, 48vh, 470px);
  padding: clamp(18px, 5vw, 26px) clamp(20px, 6vw, 32px) clamp(92px, 19vw, 128px);
  display: flex;
  flex-direction: column;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(1.05);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.45) 100%);
}

.topbar,
.hero__content {
  position: relative;
  z-index: 2;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(4px, 1.5vw, 8px);
}

.topbar__logo {
  height: clamp(26px, 6vw, 34px);
  width: auto;
  object-fit: contain;
}

.bell {
  position: relative;
  width: clamp(38px, 8.5vw, 46px);
  height: clamp(38px, 8.5vw, 46px);
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #3a3a3c;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.bell svg {
  width: clamp(17px, 4vw, 20px);
  height: clamp(17px, 4vw, 20px);
}

.bell__dot {
  position: absolute;
  top: 22%;
  right: 24%;
  width: clamp(7px, 1.7vw, 9px);
  height: clamp(7px, 1.7vw, 9px);
  border-radius: 50%;
  background: #e5484d;
  border: 2px solid #fff;
}

.hero__content {
  margin-top: clamp(22px, 6vw, 34px);
  color: #fff;
}

.hero__title {
  font-size: clamp(30px, 8.2vw, 44px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero__subtitle {
  margin-top: clamp(12px, 3.4vw, 18px);
  font-size: clamp(15px, 3.6vw, 19px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* ---------- Promo strip behind sheet ---------- */
.promo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 3vw, 16px);
  padding: clamp(24px, 5vw, 30px) clamp(20px, 6vw, 34px) clamp(28px, 6vw, 40px);
  background: linear-gradient(180deg, #f5d76e 0%, #eec34a 100%);
}

.promo__text {
  display: flex;
  flex-direction: column;
  font-size: clamp(18px, 4.5vw, 24px);
  line-height: 1.2;
  color: #1c1c1e;
}

.promo__flags {
  display: flex;
  gap: clamp(6px, 2vw, 10px);
}

.flag {
  display: flex;
  align-items: center;
  gap: clamp(5px, 1.6vw, 8px);
  background: rgba(255, 255, 255, 0.65);
  border-radius: clamp(9px, 2.2vw, 12px);
  padding: clamp(4px, 1.1vw, 6px) clamp(8px, 2.2vw, 12px) clamp(4px, 1.1vw, 6px) clamp(6px, 1.6vw, 8px);
}

.flag__icon {
  font-size: clamp(16px, 3.7vw, 20px);
  line-height: 1;
}

.flag__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.flag__meta b {
  font-size: clamp(11px, 2.4vw, 13px);
}

.flag__meta i {
  font-style: normal;
  font-size: clamp(9px, 1.9vw, 10px);
  color: var(--muted);
}

/* ---------- Login sheet ---------- */
.sheet {
  position: relative;
  z-index: 3;
  margin-top: clamp(-76px, -14vw, -56px);
  background: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: clamp(26px, 6.3vw, 34px) clamp(20px, 6vw, 32px) clamp(26px, 5.6vw, 30px);
  box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.22);
}

.sheet__title {
  font-size: clamp(24px, 5.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--ink);
}

.form {
  margin-top: clamp(16px, 4vw, 22px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 3.4vw, 18px);
}

.field {
  position: relative;
  display: block;
}

.field input {
  width: 100%;
  height: 54px !important;
  border: 1.5px solid #e4e4e7;
  border-radius: clamp(12px, 3vw, 16px);
  padding: 0 clamp(44px, 9vw, 52px) 0 clamp(14px, 4vw, 20px);
  font-size: clamp(16px, 3.2vw, 17px);
  color: var(--ink);
  background: #fff;
  outline: none;
  letter-spacing: 0.12em;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field--mpin input::placeholder {
  letter-spacing: normal;
}

.field__toggle {
  position: absolute;
  top: 50%;
  right: clamp(8px, 2.6vw, 14px);
  transform: translateY(-50%);
  width: clamp(30px, 6.5vw, 36px);
  height: clamp(30px, 6.5vw, 36px);
  border: none;
  background: transparent;
  color: #a1a1a8;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 50%;
}

.field__toggle svg {
  width: clamp(17px, 3.8vw, 20px);
  height: clamp(17px, 3.8vw, 20px);
}

.field__toggle:hover,
.field__toggle.is-visible {
  color: var(--teal);
}

.field input::placeholder {
  color: #b6b6bb;
}

.field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(47, 135, 161, 0.14);
}

.field input.is-error {
  border-color: #e5484d;
  box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.14);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(48px, 12vw, 60px);
  border: none;
  border-radius: clamp(26px, 6.5vw, 34px);
  background: var(--teal);
  color: #fff;
  font-size: clamp(17px, 3.7vw, 20px);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}

.btn:hover {
  background: var(--teal-dark);
}

.btn:active {
  transform: scale(0.99);
}

.sheet__footer {
  margin-top: clamp(16px, 4vw, 22px);
  text-align: center;
  font-size: clamp(15px, 3.5vw, 19px);
  color: #4b4b50;
}

.sheet__footer a {
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
}

.sheet__footer a:hover {
  text-decoration: underline;
}

/* ---------- OTP page ---------- */
.sheet--otp {
  display: flex;
  flex-direction: column;
}

.sheet__back {
  width: clamp(38px, 8vw, 44px);
  height: clamp(38px, 8vw, 44px);
  margin-left: -6px;
  margin-bottom: clamp(10px, 2.6vw, 14px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #f2f2f4;
  text-decoration: none;
}

.sheet__back svg {
  width: clamp(19px, 4.2vw, 22px);
  height: clamp(19px, 4.2vw, 22px);
}

.sheet__back:hover {
  background: #e7e7ea;
}

.sheet__hint {
  margin-top: clamp(9px, 2.2vw, 12px);
  font-size: clamp(15px, 3.4vw, 18px);
  line-height: 1.5;
  color: var(--muted);
}

.sheet__hint b {
  color: var(--ink);
  font-weight: 700;
}

.otp {
  display: flex;
  gap: clamp(6px, 1.9vw, 10px);
}

.otp__box {
  flex: 1;
  min-width: 0;
  height: clamp(46px, 11vw, 58px);
  border: 1.5px solid #e4e4e7;
  border-radius: clamp(11px, 2.8vw, 15px);
  background: #fff;
  text-align: center;
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;
  color: var(--ink);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.otp__box:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(47, 135, 161, 0.14);
}

.otp__box.is-error {
  border-color: #e5484d;
  box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.14);
}

.otp__error {
  margin-top: -6px;
  text-align: center;
  font-size: clamp(15px, 3.2vw, 17px);
  font-weight: 600;
  color: #e5484d;
}

.sheet__footer--otp {
  margin-top: clamp(13px, 3vw, 16px);
  font-size: clamp(14px, 3.2vw, 17px);
  color: var(--muted);
}

.sheet__footer--otp b {
  color: var(--ink);
}

/* ---------- Small screens ---------- */
