:root {
  --ink: #1A2B5C;
  --navy: #243A7A;
  --navy-deep: #1B2F6B;
  --saffron: #F4A024;
  --muted: #8A93A8;
  --line: #D6D9E8;
  --sheet: #FFFFFF;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Noto Sans Gujarati', 'Manrope', sans-serif;
  color: var(--ink);
  background: var(--navy-deep);
}

#form1 {
  width: 100%;
  height: 100%;
  margin: 0;
}

.login-shell {
  width: 100%;
  max-width: 430px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--navy-deep);
  overflow: hidden;
}

.login-hero {
  flex: 0 0 auto;
  padding: 42px 20px 36px;
  text-align: center;
  background: linear-gradient(180deg, #2A4490 0%, #1E3578 55%, #1B2F6B 100%);
}

.login-logo-ring {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #E8B84A;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.login-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.login-app-name {
  font-family: 'Manrope', sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.1;
}

.login-app-tag {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.login-sheet {
  flex: 1;
  min-height: 0;
  background: var(--sheet);
  border-radius: 28px 28px 0 0;
  margin-top: -8px;
  padding: 28px 22px calc(20px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.login-welcome {
  margin: 0 0 22px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
}

.login-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #3D4A6B;
  margin-bottom: 8px;
}

.login-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #9B7FD4;
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  min-height: 48px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-input-wrap.is-focus {
  border-color: #6B4DB8;
  box-shadow: 0 0 0 3px rgba(107, 77, 184, 0.12);
}

.login-phone-icon {
  color: #9AA3B8;
  display: inline-flex;
  flex-shrink: 0;
}

.login-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 12px 0;
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.login-error {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.login-error[hidden] {
  display: none !important;
}

.login-btn {
  width: 100%;
  margin-top: 18px;
  border: none;
  border-radius: 8px;
  padding: 14px 16px;
  font-family: 'Noto Sans Gujarati', 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: #9AA3B5;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.12s ease;
}

.login-btn:not(.is-disabled) {
  background: linear-gradient(135deg, #3A5BB8, #1E3578);
}

.login-btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.95;
}

.login-btn:not(.is-disabled):active {
  transform: scale(0.99);
}

.login-help-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.login-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 8px;
  background: #EEF0F5;
  color: #3D4A6B;
  font-family: 'Noto Sans Gujarati', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 10px;
  cursor: pointer;
}

.login-help-ico {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  flex-shrink: 0;
}

.login-help-ico.is-video { background: #E11D48; }
.login-help-ico.is-call { background: #2563EB; }

.login-privacy {
  display: block;
  margin-top: 22px;
  text-align: center;
  color: #2F57B8;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
