/* Easypaisa Mobile Trade — Auth */
.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: none;
  align-items: stretch;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(141, 198, 63, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(90, 143, 31, 0.18), transparent 50%),
    linear-gradient(180deg, #0b1a0a 0%, #102010 40%, #0a140c 100%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(1rem + env(safe-area-inset-top)) 1rem calc(1.5rem + env(safe-area-inset-bottom));
}

.auth-screen.visible {
  display: flex;
}

.auth-shell {
  width: 100%;
  max-width: 420px;
  margin: auto;
  animation: authIn 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes authIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.auth-brand {
  text-align: center;
  margin-bottom: 1.1rem;
}

.auth-brand-mark {
  width: 96px;
  height: 96px;
  margin: 0 auto 0.75rem;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(141, 198, 63, 0.35),
    0 10px 24px rgba(0, 0, 0, 0.35);
  background: #e8f5e1;
}

.auth-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-hero {
  width: 100%;
  margin: 0 auto 0.85rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(141, 198, 63, 0.28);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.1),
    0 16px 36px rgba(0, 0, 0, 0.35);
  animation: authIn 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 508;
  object-fit: cover;
}

.auth-leaf {
  display: none;
}

@keyframes leafPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.auth-leaf svg {
  width: 34px;
  height: 34px;
}

.auth-brand h1 {
  font-family: 'Sora', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f4faf0;
  line-height: 1.25;
}

.auth-brand h1 span {
  color: #8dc63f;
}

.auth-brand p {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: rgba(220, 235, 210, 0.65);
}

.auth-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(141, 198, 63, 0.22);
  border-radius: 22px;
  padding: 1.25rem 1.15rem 1.35rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  padding: 0.3rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  margin-bottom: 1.15rem;
}

.auth-tab {
  border: 0;
  background: transparent;
  color: rgba(230, 240, 220, 0.55);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem;
  border-radius: 11px;
  cursor: pointer;
  transition: 0.2s ease;
}

.auth-tab.active {
  background: linear-gradient(135deg, #8dc63f, #6faa28);
  color: #0b1a0a;
  box-shadow: 0 6px 16px rgba(141, 198, 63, 0.35);
}

.auth-pane { display: none; }
.auth-pane.active { display: block; }

.auth-field {
  margin-bottom: 0.85rem;
}

.auth-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(200, 220, 180, 0.7);
  margin-bottom: 0.35rem;
}

.auth-field input,
.auth-field select {
  width: 100%;
  border: 1px solid rgba(141, 198, 63, 0.25);
  background: rgba(8, 18, 8, 0.55);
  color: #f4faf0;
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font-size: 0.95rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field input:focus,
.auth-field select:focus {
  border-color: #8dc63f;
  box-shadow: 0 0 0 3px rgba(141, 198, 63, 0.2);
}

.auth-field input::placeholder {
  color: rgba(180, 200, 160, 0.35);
}

.phone-row {
  display: flex;
  gap: 0.55rem;
  align-items: stretch;
}

.phone-row .phone-cc {
  flex: 0 0 auto;
  width: 7.6rem;
  min-width: 7.6rem;
  padding-left: 0.55rem;
  padding-right: 0.35rem;
  font-size: 0.92rem;
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #8dc63f 50%),
    linear-gradient(135deg, #8dc63f 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.phone-row .phone-cc option {
  background: #0d1a0c;
  color: #f4faf0;
}

.phone-row input {
  flex: 1 1 auto;
  min-width: 0;
}

.auth-submit {
  width: 100%;
  margin-top: 0.35rem;
  border: 0;
  border-radius: 14px;
  padding: 0.95rem;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #0b1a0a;
  background: linear-gradient(135deg, #a7d44a 0%, #8dc63f 45%, #6faa28 100%);
  box-shadow: 0 10px 28px rgba(111, 170, 40, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s;
}

.auth-submit:active {
  transform: scale(0.98);
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0;
  color: rgba(200, 220, 180, 0.45);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(141, 198, 63, 0.35), transparent);
}

.google-wrap {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.google-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #fff;
  color: #1f2937;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.auth-error {
  display: none;
  margin-bottom: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 60, 60, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.35);
  color: #ffb4b4;
  font-size: 0.82rem;
}

.auth-error.visible {
  display: block;
}

.auth-foot {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgba(200, 220, 180, 0.4);
}
