:root {
  --font-geist-mono: "Courier New", monospace;
  --background: #eff5f9;
  --foreground: #17202a;
  --blue: #07599b;
  --blue-deep: #064a82;
  --field: #07518d;
  --field-focus: #0a67ad;
  --paper: #ffffff;
  --muted: #657385;
  --line: #d7e2ec;
  --success: #138453;
  --danger: #c73838;
  --warning: #b46b16;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #114a94;
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  min-height: 44px;
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(320px, 1fr);
  gap: 28px;
  min-height: 100vh;
  padding: 0;
}

.admin-shell {
  grid-template-columns: minmax(320px, 960px);
  justify-content: center;
  padding: 42px;
  background: #114a94;
}

.auth-stage {
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.login-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  min-height: 100vh;
  padding: 40px 24px;
  overflow: hidden;
  background: #114a94;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: #ffffff;
}

.brand-logo {
  position: relative;
  z-index: 1;
  width: min(70%, 280px);
  height: auto;
  display: block;
}

.login-card::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: transparent;
  content: "";
}

.otp-card {
  width: 100%;
  min-height: 100vh;
  padding: 58px 60px 52px;
}

.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-height: 28px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.auth-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 464px);
}

.otp-form {
  width: min(100%, 464px);
  min-height: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-form h1 {
  margin: 0 0 32px;
  text-align: center;
  color: #ffffff;
  font-size: clamp(34px, 7vw, 43px);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.otp-form .eyebrow {
  margin-bottom: 18px;
  text-align: left;
}

.otp-form h1 {
  margin-bottom: 46px;
  text-align: left;
  font-size: clamp(44px, 9vw, 58px);
  line-height: 0.95;
}

.auth-form label {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-form input {
  width: 100%;
  height: 56px;
  margin: 0 0 22px;
  padding: 0 16px;
  border: 2px solid transparent;
  border-radius: 5px;
  outline: none;
  background: #ffffff;
  color: #17202a;
  font-size: 18px;
  font-weight: 700;
}

.otp-form input {
  margin-bottom: 26px;
}

.auth-form input::placeholder {
  color: rgba(23, 32, 42, 0.45);
}

.auth-form input:focus {
  border-color: var(--blue);
  background: #ffffff;
}

.primary-button {
  width: 100%;
  margin-top: 8px;
  border-radius: 5px;
  background: #fff;
  color: var(--blue-deep);
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: none;
}

.primary-button:disabled {
  background: #fff;
  color: var(--blue-deep);
  opacity: 1;
}

.otp-form .primary-button {
  margin-top: 0;
}

.forgot-link {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  user-select: none;
}

.wait-text {
  margin: 0 0 10px;
  color: #ff4d4f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.wait-text strong {
  font-weight: 900;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.resend-button {
  margin: 0 0 10px;
  padding: 0;
  border: none;
  background: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  align-self: center;
}

.resend-button:hover {
  color: rgba(255, 255, 255, 0.8);
}

.form-message {
  min-height: 42px;
  margin: 18px 0 0;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.45;
}

.success-card {
  background: #4caf50;
  place-items: stretch;
  padding: 0;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.verification-done {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 24px 22px;
  gap: 22px;
  overflow: hidden;
}

.verification-done p {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.verification-done .hindi-text {
  font-size: clamp(17px, 4.6vw, 24px);
}

.verification-done .english-text {
  font-size: clamp(17px, 4.6vw, 24px);
}

.login-card.success-card {
  padding: 0;
}

.admin-panel {
  align-self: center;
  width: 100%;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(5, 20, 35, 0.35);
}

.admin-page {
  min-height: 380px;
}

.admin-panel .eyebrow {
  color: var(--blue);
}

.admin-header {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.admin-header h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0;
}

.admin-header-row {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.admin-header-row .status-pill {
  grid-column: 1 / -1;
}

.logout-button {
  min-height: 38px;
  border-radius: 5px;
  padding: 0 16px;
  background: #e9f1f8;
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  background: #eef3f7;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.status-pill.pending {
  background: #fff2df;
  color: var(--warning);
}

.status-pill.approved {
  background: #e3f5ec;
  color: var(--success);
}

.status-pill.rejected {
  background: #ffe8e8;
  color: var(--danger);
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.admin-toolbar .reject-button {
  min-height: 32px;
  padding: 0 14px;
  font-size: 12px;
}

.request-list {
  display: grid;
  gap: 16px;
  max-height: 560px;
  overflow-y: auto;
}

.empty-state,
.request-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #f8fbfd;
}

.request-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.delete-button {
  min-height: 30px;
  border-radius: 5px;
  padding: 0 12px;
  background: #ffe8e8;
  color: var(--danger);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.empty-state h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.request-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px 18px;
  align-items: center;
}

.request-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.request-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
}

.otp-value {
  display: inline-flex;
  width: fit-content;
  min-width: 96px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  padding: 10px 12px;
  background: #e9f1f8;
  color: var(--blue-deep);
  font-family: var(--font-geist-mono), monospace;
  font-size: 24px;
  letter-spacing: 0;
}

.admin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.approve-button,
.reject-button {
  border-radius: 5px;
  color: #ffffff;
  font-weight: 900;
  text-transform: uppercase;
}

.approve-button {
  background: var(--success);
}

.reject-button {
  background: var(--danger);
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    padding: 24px;
  }

  .auth-stage {
    min-height: 100vh;
  }
}

@media (max-width: 520px) {
  .app-shell {
    padding: 0;
  }

  .admin-shell {
    padding: 14px;
  }

  .admin-panel {
    padding: 34px 22px;
  }

  .login-card,
  .otp-card {
    min-height: 100vh;
    padding: 44px 24px 34px;
  }

  .otp-form h1 {
    margin-bottom: 34px;
    font-size: 42px;
  }

  .request-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .request-grid strong {
    margin-bottom: 10px;
  }
}
