/* ==========================================================================
   STANDALONE SINGLE-CARD AUTHENTICATION STYLING (GOLD #D4A853 THEME)
   ========================================================================== */
.auth-page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.auth-single-card {
  width: 100%;
  max-width: 440px;
  background: rgba(35, 38, 45, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 20px 40px rgba(0, 0, 0, 0.8);
  border-radius: 18px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Specular Top Hairline */
.auth-single-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.5), transparent);
}

/* Top Brand Logo */
.auth-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.auth-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.auth-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #D4A853 0%, #B8903A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f1012;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(212, 168, 83, 0.35);
}

.auth-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #E8ECF1;
  letter-spacing: -0.03em;
}

.auth-logo-text span {
  color: #D4A853;
}

/* Dynamic Title Header */
.auth-header-text {
  text-align: center;
  margin-bottom: 28px;
}

.auth-main-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #E8ECF1;
  line-height: 1.2;
  margin-bottom: 6px;
  transition: opacity 0.2s ease;
}

.auth-sub-title {
  font-size: 0.88rem;
  color: #8892A0;
  line-height: 1.5;
}

/* Form Panels */
.auth-form-panel {
  display: none;
  animation: cardFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.auth-form-panel.active {
  display: block;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Input Groups */
.form-group {
  margin-bottom: 20px;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #A8B2C1;
}

.forgot-link {
  font-size: 0.82rem;
  color: #D4A853;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.forgot-link:hover {
  color: #E8C876;
  text-decoration: underline;
}

.input-wrapper {
  position: relative;
}

.input-icon-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #5A6472;
  font-size: 0.95rem;
  pointer-events: none;
  transition: color 0.2s ease;
}

.recessed-auth-input {
  width: 100%;
  padding: 13px 40px 13px 42px;
  background: #15181c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #E8ECF1;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.recessed-auth-input:focus {
  border-color: #D4A853;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 12px rgba(212, 168, 83, 0.35);
}

.recessed-auth-input:focus ~ .input-icon-left {
  color: #D4A853;
}

.eye-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #5A6472;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.eye-toggle-btn:hover {
  color: #E8ECF1;
}

/* Custom Checkbox */
.checkbox-row {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
}

.auth-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 0.85rem;
  color: #8892A0;
}

.auth-checkbox-label input {
  display: none;
}

.checkbox-custom-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #15181c;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.2s ease;
}

.auth-checkbox-label input:checked + .checkbox-custom-box {
  background: linear-gradient(135deg, #D4A853 0%, #B8903A 100%);
  border-color: #D4A853;
  color: #0f1012;
  box-shadow: 0 0 10px rgba(212, 168, 83, 0.3);
}

/* Warm Gold Primary Button */
.btn-gold-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #D4A853 0%, #B8903A 100%);
  color: #0f1012;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.3);
}

/* Light Sweep Reflection on Hover */
.btn-gold-submit::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn-gold-submit:hover::after {
  left: 140%;
}

.btn-gold-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 168, 83, 0.45);
  background: linear-gradient(135deg, #E8C876 0%, #D4A853 100%);
}

.btn-gold-submit:active {
  transform: translateY(1px);
}

/* Bottom Switcher */
.auth-bottom-switcher {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.88rem;
  color: #8892A0;
}

.auth-switcher-btn {
  background: none;
  border: none;
  color: #D4A853;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  padding: 0 4px;
  transition: color 0.2s ease;
}

.auth-switcher-btn:hover {
  color: #E8C876;
  text-decoration: underline;
}

/* Modal Reset */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 400px;
  background: #1e2127;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #8892A0;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #1e2127;
  border: 1px solid #D4A853;
  border-radius: 10px;
  color: #E8ECF1;
  font-size: 0.88rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 480px) {
  .auth-single-card {
    padding: 28px 20px;
  }
}
