:root {
  --adani-font: "Nunito", system-ui, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body.adani-auth {
  font-family: var(--adani-font);
  color: #fff;
  background: #0c348f url("adani-bg.jpg") center top / cover no-repeat fixed;
}

.screen {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    calc(16px + var(--safe-top))
    22px
    calc(22px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  min-height: 214px;
  flex-shrink: 0;
}

.logo {
  display: block;
  width: 148px;
  height: 148px;
  margin: 6px auto 0;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(10, 20, 80, 0.28));
}

.robot {
  position: absolute;
  right: 0;
  top: 72px;
  width: 150px;
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 10px 16px rgba(20, 30, 80, 0.28));
}

.screen.is-register .robot {
  width: 108px;
  right: 2px;
  top: 92px;
}

.tag {
  position: relative;
  z-index: 1;
  width: 62%;
  margin: -8px auto 0;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(12, 40, 110, 0.45);
}

.tag span {
  display: block;
  width: 46px;
  height: 3px;
  margin: 7px auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #39c8ff, #e14cff);
  box-shadow: 0 0 10px rgba(180, 80, 255, 0.55);
}

.form {
  position: relative;
  z-index: 2;
  margin-top: 6px;
}

.title {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 10px rgba(10, 30, 90, 0.35);
}

.lead {
  margin: 4px 0 16px;
  max-width: 250px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 1px 6px rgba(10, 30, 90, 0.4);
}

.alert {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(90, 12, 40, 0.55);
  border: 1px solid rgba(255, 180, 200, 0.45);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  margin-bottom: 12px;
  padding: 0 14px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(180deg, rgba(18, 32, 88, 0.78), rgba(52, 24, 102, 0.7));
  border: 1.5px solid rgba(150, 190, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 16px rgba(16, 20, 70, 0.16);
  backdrop-filter: blur(8px);
}

.field svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.dial {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-right: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.dial svg { width: 12px; height: 12px; }

.field input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

/* One password control only — hide browser reveal next to custom UI */
.field input[type="password"]::-ms-reveal,
.field input[type="password"]::-ms-clear {
  display: none;
}

.submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 6px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  background: linear-gradient(90deg, #3aa6ff 0%, #6d74ff 42%, #d946ef 100%);
  box-shadow:
    0 8px 18px rgba(70, 40, 170, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.submit:active { transform: translateY(1px); }

.switch {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  text-shadow: 0 1px 6px rgba(10, 30, 90, 0.45);
}

.switch a {
  color: #fff;
  text-decoration: none;
}

@media (max-height: 740px) {
  .hero { min-height: 176px; }
  .logo { width: 118px; height: 118px; }
  .robot { width: 124px; top: 58px; }
  .screen.is-register .robot { width: 90px; top: 74px; }
  .title { font-size: 26px; }
  .field { min-height: 46px; margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .submit:active { transform: none; }
}
