/* PlayLot Luxury Authentication & Registration Styles */

.auth-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: 
    radial-gradient(ellipse 100% 75% at 50% -10%, rgba(200, 155, 60, 0.16) 0%, rgba(38, 29, 14, 0.3) 45%, rgba(12, 10, 8, 0.95) 75%, #070708 100%),
    linear-gradient(180deg, #0a0907 0%, #171309 25%, #1c160a 50%, #130f07 75%, #070708 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  position: relative;
  overflow-x: hidden;
}

/* Header */
.auth-header {
  width: 100%;
  padding: 24px 36px;
  position: relative;
  z-index: 10;
}

.auth-header-container {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.25s ease;
}

.auth-back-link svg {
  transition: transform 0.25s ease;
}

.auth-back-link:hover {
  color: var(--gold-light);
  border-color: var(--gold-border);
  background: rgba(212, 175, 55, 0.05);
}

.auth-back-link:hover svg {
  transform: translateX(-4px);
}

/* Main Container */
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px 60px;
  position: relative;
  z-index: 2;
}

.auth-card {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: linear-gradient(155deg, rgba(17, 17, 21, 0.88) 0%, rgba(10, 10, 13, 0.94) 100%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 20px;
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.8),
    0 0 50px rgba(212, 175, 55, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  overflow: hidden;
  transition: border-color 0.3s ease;
  animation: authCardEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes authCardEnter {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-card:hover {
  border-color: rgba(212, 175, 55, 0.32);
}

/* Left Column: Form */
.auth-form-column {
  padding: 44px 44px 40px;
  display: flex;
  flex-direction: column;
}

/* Mode Switcher Tabs with Sliding Glider */
.auth-mode-switcher {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 26px;
  isolation: isolate;
}

.auth-switcher-glider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--gold-gradient);
  border-radius: 7px;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
  pointer-events: none;
}

.auth-mode-switcher.register-mode .auth-switcher-glider {
  transform: translateX(100%);
}

.auth-tab-btn {
  position: relative;
  z-index: 1;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 7px;
  padding: 10px 16px;
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.3s ease;
  text-align: center;
}

.auth-tab-btn:hover {
  color: #ffffff;
}

.auth-tab-btn.active {
  color: #080808 !important;
  font-weight: 700;
}

/* Form Header */
.auth-form-header {
  margin-bottom: 22px;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Form Elements */
.auth-form-body {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

/* Smooth Expandable Groups for Flawless Transitions */
.expand-group {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-8px);
  margin-top: 0;
  pointer-events: none;
  transition: grid-template-rows 0.42s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
              margin-top 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.expand-group > .expand-inner {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.expand-group.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  margin-top: 17px;
  pointer-events: auto;
}

.auth-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: #d2d2dc;
  letter-spacing: 0.2px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: #6c6c78;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: color 0.2s ease;
}

.input-wrap input,
.input-wrap select {
  width: 100%;
  background: rgba(9, 9, 12, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  padding: 12px 14px 12px 42px;
  color: #f5f5f7;
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
  transition: all 0.25s ease;
}

.input-wrap select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23D4AF37' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.input-wrap select option {
  background: #111116;
  color: #f5f5f7;
  padding: 8px;
}

.input-wrap input::placeholder {
  color: #555560;
}

.input-wrap input:focus,
.input-wrap select:focus {
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
  background: rgba(13, 13, 17, 0.96);
}

.input-wrap:focus-within .input-icon {
  color: var(--gold-light);
}

.btn-toggle-pwd {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #6c6c78;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.btn-toggle-pwd:hover {
  color: var(--gold-light);
}

.field-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
  padding-left: 2px;
}

/* Password Indicators Expandable Wrapper */
.pwd-indicators-expand {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-6px);
  margin-top: 0;
  pointer-events: none;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              margin-top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwd-indicators-expand > .pwd-indicators-inner {
  overflow: hidden;
  min-height: 0;
}

.pwd-indicators-expand.is-visible {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  margin-top: 10px;
  pointer-events: auto;
}

/* Password Indicators (LinkPy inspired) */
.pwd-indicators {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(10, 10, 14, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.indicator-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #666672;
  transition: all 0.25s ease;
}

.indicator-item .ind-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.25s ease;
}

.indicator-item.valid {
  color: var(--gold-light);
  font-weight: 600;
}

.indicator-item.valid .ind-icon {
  color: #FFE178;
  text-shadow: 0 0 8px rgba(255, 225, 120, 0.7);
}

/* Aux row & Checkbox */
.auth-aux-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.custom-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: var(--text-secondary);
}

.custom-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(9, 9, 12, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  position: relative;
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-box {
  background: var(--gold-gradient);
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-box::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid #09090b;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.checkbox-label a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.checkbox-label a:hover {
  color: #ffffff;
}

/* Error Banner */
.auth-error-banner {
  background: rgba(185, 28, 28, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  animation: authShake 0.35s ease;
}

@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

/* Submit Button */
.auth-submit-btn {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  border-radius: 9px;
  transition: all 0.25s ease;
}

.auth-submit-btn .btn-text {
  display: inline-block;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Footer Toggle */
.auth-footer-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
  font-size: 13px;
  color: var(--text-secondary);
}

#footerTogglePrompt,
#btnToggleMode {
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-link-gold {
  background: none;
  border: none;
  color: var(--gold-light);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.btn-link-gold:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Forgot Password Link in Remember Me Row */
.btn-link-subtle {
  background: none;
  border: none;
  color: #8c8c96;
  font-family: var(--font-main);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.btn-link-subtle:hover {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Auth Subviews (Email verify & Password reset) */
.auth-subview {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.auth-subview.is-animating-in {
  animation: subviewEnter 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes subviewEnter {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.subview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.btn-subview-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 12px;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-subview-back:hover {
  color: #ffffff;
  border-color: var(--gold-border);
  background: rgba(212, 175, 55, 0.06);
}

.badge-subview-step {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  letter-spacing: 0.3px;
}

.gold-text-static {
  color: var(--gold-light);
  font-weight: 600;
}

/* Demo Email Banner (Test Environment Code Display) */
.demo-email-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(212, 175, 55, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 22px;
  animation: bannerGlow 3s infinite alternate;
}

@keyframes bannerGlow {
  0% { box-shadow: 0 0 10px rgba(212, 175, 55, 0.04); }
  100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.12); }
}

.demo-email-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.demo-email-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: #cfcfd6;
}

.demo-email-text strong {
  color: #FFE178;
  font-size: 14.5px;
  letter-spacing: 1px;
  font-family: var(--font-main);
}

/* 6-Digit Code Inputs */
.code-inputs-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}

.code-digit {
  width: 46px;
  height: 52px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-main);
  color: var(--gold-light);
  background: rgba(9, 9, 12, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  outline: none;
  transition: all 0.2s ease;
}

.code-digit:focus {
  border-color: var(--gold-primary);
  background: rgba(14, 14, 18, 0.98);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16), 0 0 16px rgba(212, 175, 55, 0.24);
}

.code-sep {
  color: #4f4f5a;
  font-size: 16px;
  font-weight: 700;
  user-select: none;
}

/* Resend Timer Row */
.resend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: -6px;
}

.resend-row b {
  color: var(--gold-light);
}

.btn-resend-code {
  background: none;
  border: none;
  color: var(--gold-light);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
  transition: color 0.2s ease;
}

.btn-resend-code:hover {
  color: #ffffff;
}

/* Right Column: Luxury Feature Preview */
.auth-feature-column {
  background: radial-gradient(ellipse 90% 70% at 90% 10%, rgba(212, 175, 55, 0.1) 0%, rgba(13, 13, 17, 0.96) 75%);
  border-left: 1px solid rgba(212, 175, 55, 0.14);
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-header .section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-primary);
  margin-bottom: 12px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 28px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.22);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-security-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(212, 175, 55, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 10px;
  margin-top: 32px;
  font-size: 11.5px;
  color: #d4d4dc;
  line-height: 1.45;
}

.feature-security-note svg {
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 920px) {
  .auth-card {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .auth-feature-column {
    border-left: none;
    border-top: 1px solid rgba(212, 175, 55, 0.14);
    padding: 34px 28px;
  }

  .auth-form-column {
    padding: 38px 28px 32px;
  }
}

@media (max-width: 540px) {
  .auth-header {
    padding: 16px 20px;
  }

  .auth-main {
    padding: 10px 16px 40px;
  }

  .auth-form-column {
    padding: 30px 18px 26px;
  }

  .auth-title {
    font-size: 22px;
  }

  .auth-feature-column {
    padding: 26px 18px;
  }
}
