/**
 * Swaraj247 auth presentation shell — single visual owner for signup + recovery.
 * Critical paint also inlined in HTML head; this file is the canonical shell.
 */

:root {
  --swaraj-su-btn-bg: linear-gradient(180deg, #ffcc2f 8%, #ffb80c 100%);
  --auth-control-height: 50px;
  --auth-radius: 7px;
  --auth-gap: 8px;
  --auth-row-gap: 14px;
  --auth-bg-top: #3a3a3a;
  --auth-bg-mid: #1a1a1a;
  --auth-bg-bottom: #0d0d0d;
}

html[data-swaraj-signup-route="1"],
html[data-swaraj-recovery-route="1"] {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--auth-bg-mid);
}

.swaraj-su-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(
    180deg,
    var(--auth-bg-top) 0%,
    var(--auth-bg-mid) 55%,
    var(--auth-bg-bottom) 100%
  );
  color: #fff;
  font-family: Tahoma, Helvetica, sans-serif;
}

.swaraj-su-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 12px
    calc(40px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

html[data-swaraj-signup-route="1"] .swaraj-su-page,
html[data-swaraj-recovery-route="1"] .swaraj-su-page {
  justify-content: center;
  padding-top: calc(56px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.swaraj-su-close {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top, 0px));
  right: calc(16px + env(safe-area-inset-right, 0px));
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--swaraj-su-btn-bg);
  color: #000;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  z-index: 2;
}

.swaraj-su-close:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.swaraj-su-logo {
  margin-top: 32px;
  margin-bottom: 8px;
  min-height: 72px;
  height: 72px;
  width: min(92vw, 280px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}

html[data-swaraj-signup-route="1"] .swaraj-su-logo,
html[data-swaraj-recovery-route="1"] .swaraj-su-logo {
  margin-top: 0;
  margin-bottom: 12px;
}

.swaraj-su-logo img {
  height: 72px;
  max-height: 72px;
  width: auto;
  max-width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
}

.swaraj-su-card {
  width: min(92vw, 400px);
  max-width: 400px;
  margin: 0 auto;
  box-sizing: border-box;
  flex-shrink: 0;
}

.swaraj-su-loading {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.swaraj-su-otp-block {
  opacity: 1;
}

.swaraj-su-otp-block:not(.is-active) {
  display: none;
}

.swaraj-su-otp-block.is-active {
  display: block;
  animation: swaraj-auth-fade-in 0.12s ease;
}

@keyframes swaraj-auth-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.swaraj-su-confirm-wrap:not(.is-visible) {
  display: none;
}

.swaraj-su-confirm-wrap.is-visible {
  display: block;
  animation: swaraj-auth-fade-in 0.12s ease;
}
