/* ==========================================================================
   Page — Login / Auth
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page wrapper
   -------------------------------------------------------------------------- */

.login-page {
  width: 100%;
  display: flex;
  justify-content: center;
  background: var(--bg-white-0);
}

.login-page,
.login-page * {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Main wrapper
   -------------------------------------------------------------------------- */

.login-logo-wrapper {
  width: 100%;
  max-width: 1440px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */

.logo-container img {
  max-width: 160px;
  height: auto;
}

/* --------------------------------------------------------------------------
   Account pin
   -------------------------------------------------------------------------- */

.account-pin {
  position: relative;
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(
    180deg,
    rgba(51, 196, 234, 0.10) 0%,
    rgba(51, 196, 234, 0.00) 100%
  );
  backdrop-filter: blur(12px);
}

.account-pin-ring {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #33C4EA;
}

.account-pin-core {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-white-0);
}

.account-pin-core img {
  width: 24px;
  height: 24px;
  display: block;
}

/* --------------------------------------------------------------------------
   Auth card
   -------------------------------------------------------------------------- */

.auth-card {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Titles
   -------------------------------------------------------------------------- */

.auth-title    { text-align: center; }
.auth-subtitle { text-align: center; }

/* --------------------------------------------------------------------------
   Error
   -------------------------------------------------------------------------- */

#auth-error {
  text-align: center;
  color: red;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */

.auth-card form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hidden {
  display: none;
}

/* --------------------------------------------------------------------------
   Inputs
   font-size: 16px prevents iOS Safari auto-zoom on focus
   -------------------------------------------------------------------------- */

.auth-card input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--stroke-soft-200);
  background: var(--bg-weak-50);
  font-size: 16px;    /* was 14px — 16px prevents iOS zoom */
}

.auth-card input:focus {
  outline: none;
  border-color: var(--primary-accent);
  background: var(--bg-white-0);
}

/* --------------------------------------------------------------------------
   Phone input
   -------------------------------------------------------------------------- */

.phone-input-wrapper {
  position: relative;  /* anchor for the absolutely-positioned OTP button */
  width: 100%;
  /* No display:flex here — that would collapse label + input into a row */
}

.phone-number {
  font-weight: 500;
}

.phone-input-wrapper input {
  padding-right: 96px; /* space for OTP button */
}

/* --------------------------------------------------------------------------
   OTP send button
   Absolutely positioned inside the input wrapper, centered on the input row.
   The input is 16px font + 24px vertical padding = ~52px tall, so bottom of
   the input relative to the wrapper top ≈ label height + 52px. Using bottom
   instead of top avoids depending on label height.
   -------------------------------------------------------------------------- */

.otp-send-btn {
  position: absolute;
  right: 8px;
  bottom: 6px;

  padding: 8px 10px;
  min-height: 30px;

  border-radius: 8px;
  background: #f0f0f0;
  border: none;

  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub-600);
  cursor: pointer;
  white-space: nowrap;
}

.otp-send-btn:hover {
  background: #e6e6e6;
}

/* --------------------------------------------------------------------------
   OTP verify
   -------------------------------------------------------------------------- */

.verify-code {
  font-weight: 500;
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   Submit button
   -------------------------------------------------------------------------- */

.auth-submit-btn {
  margin-top: 8px;
  height: 44px;           /* was 40px */
  border-radius: 10px;
  background: var(--primary-accent);
  color: var(--static-white);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  width: 100%;
}

.auth-submit-btn:hover {
  background: var(--primary-accent-hover);
}

/* --------------------------------------------------------------------------
   OR divider
   -------------------------------------------------------------------------- */

.or-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
}

.or-line {
  flex: 1;
  height: 1px;
  background: var(--stroke-soft-200);
}

.or-text {
  font-size: 11px;
  font-weight: 500;
  color: #a3a3a3;
  letter-spacing: 0.22px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Google login
   -------------------------------------------------------------------------- */

.google-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;

  height: 44px;           /* was 40px */
  border-radius: 10px;
  border: 1px solid var(--stroke-soft-200);
  background: var(--bg-white-0);

  text-decoration: none;
  color: #000;
  font-size: 14px;
  font-weight: 500;

  box-shadow: 0 1px 2px rgba(10, 13, 20, 0.03);
}

.google-login:hover {
  background: #fafafa;
}

.google-icon {
  width: 24px;
  height: 24px;
  display: flex;
}