/* ============================================================
   SPG Login Page Styles (overrides for _site.login.route)
   Scoped to .spg-login-page to avoid leaking into other dialogs.
   ============================================================ */

.spg-login-page {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-family: 'Outfit', sans-serif;
  overflow: hidden;
  z-index: 50;
}

.spg-login-bg {
  position: absolute;
  inset: 0;
  background: url('/api/file/key/bg.png') center center / cover no-repeat;
  z-index: 0;
}

.spg-login-gradient {
  position: absolute;
  inset: 0;
  background: url('/api/file/key/gradient.png') left center / cover no-repeat;
  z-index: 1;
}

.spg-login-content {
  position: relative;
  z-index: 2;
  width: 440px;
  max-width: calc(100% - 48px);
  margin-right: calc(8% + 350px);
}

@media (max-width: 1200px) {
  .spg-login-content {
    margin-right: 8%;
  }
}

@media (max-width: 768px) {
  .spg-login-page {
    justify-content: center;
  }
  .spg-login-content {
    margin-right: 0;
    padding: 0 24px;
  }
}

.spg-login-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 48px;
  color: #EFBD45;
  margin: 0 0 8px;
  line-height: 1.1;
}

.spg-login-subtitle {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #ffffff;
  line-height: 1.5;
  margin: 0 0 36px;
}

/* Wrap the embedded LoginForm so we can retarget its inputs/buttons */
.spg-login-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Hide labels (we use placeholders) */
.spg-login-form-wrap label {
  display: none;
}

/* Input fields -- gold pill style with yellow left accent */
.spg-login-form-wrap input[type="text"],
.spg-login-form-wrap input[type="email"],
.spg-login-form-wrap input[type="password"],
.spg-login-form-wrap input[type="tel"] {
  position: relative;
  width: 100%;
  height: 52px;
  background: rgba(255, 255, 255, 0.9) !important;
  border: none !important;
  border-left: 4px solid #EFBD45 !important;
  border-radius: 50px !important;
  padding: 0 24px !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 200;
  font-size: 16px;
  color: #0e1a2c !important;
  outline: none;
  margin-left: 12px;
  box-shadow: none !important;
}

.spg-login-form-wrap input::placeholder {
  color: #5d6d83 !important;
  opacity: 1;
  font-weight: 200;
}

.spg-login-form-wrap input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(239, 189, 69, 0.35) !important;
}

/* Error text */
.spg-login-form-wrap .text-danger-500,
.spg-login-form-wrap [class*="text-danger"] {
  color: #ff8a8a !important;
  font-size: 13px;
  margin-left: 16px;
}

/* Submit button -- "Let's Go" pill */
.spg-login-form-wrap button[type="submit"],
.spg-login-form-wrap button[class*="bg-primary"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: #EFBD45 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 14px 36px !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.1s;
  height: auto;
  min-height: 52px;
}

.spg-login-form-wrap button[type="submit"]:hover:not(:disabled),
.spg-login-form-wrap button[class*="bg-primary"]:hover:not(:disabled) {
  background-color: #000000 !important;
  color: #EFBD45 !important;
}

.spg-login-form-wrap button[type="submit"]:active:not(:disabled) {
  transform: scale(0.97);
}

.spg-login-form-wrap button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Secondary / outline / ghost buttons (e.g. MFA send-via, send-another-code) */
.spg-login-form-wrap button[class*="bg-secondary"],
.spg-login-form-wrap button[class*="border-"],
.spg-login-form-wrap button.variant-outline {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 50px !important;
  padding: 12px 28px !important;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
}

.spg-login-form-wrap button[class*="bg-secondary"]:hover:not(:disabled),
.spg-login-form-wrap button[class*="border-"]:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: #EFBD45 !important;
  color: #EFBD45 !important;
}

/* Links inside the form (forgot password, etc.) */
.spg-login-form-wrap a,
.spg-login-content a {
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s;
}

.spg-login-form-wrap a:hover,
.spg-login-content a:hover {
  color: #EFBD45;
}

/* Registered banner / success message */
.spg-login-banner {
  background: rgba(239, 189, 69, 0.10);
  border: 1px solid rgba(239, 189, 69, 0.35);
  border-radius: 8px;
  padding: 12px 16px;
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 16px;
}

/* MFA 6-digit input grid */
.spg-login-form-wrap .grid input,
.spg-login-form-wrap .flex input[maxlength="1"] {
  width: 48px !important;
  height: 56px !important;
  margin-left: 0 !important;
  padding: 0 !important;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  border-radius: 12px !important;
  border-left-width: 4px !important;
}

/* ============================================================
   Centered variant (used by /auth/forgot and password reset)
   ============================================================ */
.spg-login-page.spg-login-page-centered {
  justify-content: center;
}

.spg-login-page-centered .spg-login-content {
  margin-right: 0;
  width: 520px;
  max-width: calc(100% - 48px);
}

.spg-login-back-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  font-weight: 200;
  color: #EFBD45 !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.spg-login-back-link:hover {
  color: #ffffff !important;
}
