/* PAYLA ACCOUNT RECOVERY - PREMIUM LUXURY UI */
:root {
  /* Core Brand Palette */
  --obsidian: #0A0A0A;
  --obsidian-secondary: #0F0F0F;
  --rose-gold: #E8B4B8;
  --rose-glow: rgba(232, 180, 184, 0.12);
  --text-primary: #FDFDFD;
  --text-secondary: #B8B8B8;
  --glass-bg: rgba(15, 15, 15, 0.6);
  --glass-border: rgba(232, 180, 184, 0.15);
  
  /* Status Colors */
  --success: #10B981;
  --success-glow: rgba(16, 185, 129, 0.15);
  --warning: #F59E0B;
  --error: #EF4444;
  --error-glow: rgba(239, 68, 68, 0.15);
  
  /* Typography */
  --font-cormorant: 'Cormorant Garamond', serif;
  --font-playfair: 'Playfair Display', serif;
  --font-inter: 'Inter', sans-serif;
  --font-lora: 'Lora', serif;
  --font-mono: 'Courier New', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--obsidian);
  color: var(--text-primary);
  font-family: var(--font-inter);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* === ANIMATED GLITTER BACKGROUND === */
.glitter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(232, 180, 184, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(232, 180, 184, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(232, 180, 184, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

/* === GLASS MORPHISM EFFECT === */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

/* === TOPBAR === */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(30px);
  border-bottom: 1px solid var(--rose-glow);
}

.logo {
  font-family: var(--font-playfair);
  font-weight: 900;
  font-size: 20px;
  color: var(--rose-gold);
  text-decoration: none;
  letter-spacing: -0.5px;
}

/* Recovery Progress */
.recovery-progress {
  display: flex;
  align-items: center;
  gap: 30px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.5;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.step.active {
  opacity: 1;
}

.step span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--obsidian);
  border: 1px solid var(--rose-glow);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.step.active span {
  background: var(--rose-gold);
  border-color: var(--rose-gold);
  color: var(--obsidian);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(232, 180, 184, 0.4);
}

.step.completed span {
  background: var(--rose-gold);
  border-color: var(--rose-gold);
  color: var(--obsidian);
}

.step-label {
  font-family: var(--font-inter);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.step.active .step-label {
  color: var(--rose-gold);
}

/* === MAIN RECOVERY CONTENT === */
.recovery-container {
  margin-top: 100px;
  padding: 40px 24px;
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.recovery-card {
  width: 100%;
  max-width: 500px;
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Recovery Steps */
.recovery-step {
  display: none;
  flex-direction: column;
  gap: 32px;
}

.recovery-step.active {
  display: flex;
}

/* Step Header */
.step-header {
  text-align: center;
}

.step-header.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(232, 180, 184, 0.1);
  border: 1px solid var(--rose-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--rose-gold);
  position: relative;
}

.step-icon.success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--success);
}

.icon-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--rose-glow), transparent 70%);
  opacity: 0.5;
  animation: pulse 2s infinite;
}

.icon-glow.success-glow {
  background: radial-gradient(circle, var(--success-glow), transparent 70%);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.step-title {
  font-family: var(--font-cormorant);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.step-subtitle {
  font-family: var(--font-lora);
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.highlight {
  color: var(--rose-gold);
  font-weight: 600;
}

/* Form Section */
.form-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-section.centered {
  align-items: center;
  text-align: center;
}

/* Form Elements */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid var(--rose-glow);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-wrapper:focus-within {
  border-color: var(--rose-gold);
  box-shadow: 0 0 0 3px rgba(232, 180, 184, 0.2);
  transform: translateY(-1px);
}

.input-icon {
  padding: 0 16px;
  color: var(--rose-gold);
  font-size: 16px;
}

.input-wrapper input {
  flex: 1;
  padding: 16px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-inter);
  font-size: 16px;
  font-weight: 500;
  outline: none;
}

.input-wrapper input::placeholder {
  font-family: var(--font-lora);
  font-style: italic;
  color: var(--text-secondary);
}

.password-toggle {
  padding: 0 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: var(--rose-gold);
}

/* Error Messages */
.error-message {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  color: var(--error);
  font-size: 14px;
  font-weight: 500;
}

.error-message i {
  flex-shrink: 0;
}

/* Hints */
.hint {
  font-family: var(--font-lora);
  font-style: italic;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: -8px;
}

/* Recovery Options */
.recovery-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.option-card:hover {
  border-color: var(--rose-glow);
  transform: translateY(-2px);
  background: rgba(232, 180, 184, 0.05);
}

.option-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(232, 180, 184, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--rose-gold);
  flex-shrink: 0;
}

.option-content {
  flex: 1;
}

.option-content h4 {
  font-family: var(--font-cormorant);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.option-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Code Input */
.code-input-group {
  text-align: center;
}

.code-inputs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.code-input {
  width: 48px;
  height: 60px;
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid var(--rose-glow);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.code-input:focus {
  border-color: var(--rose-gold);
  box-shadow: 0 0 0 3px rgba(232, 180, 184, 0.2);
  transform: scale(1.05);
}

.code-input.filled {
  border-color: var(--rose-gold);
  background: rgba(232, 180, 184, 0.05);
}

/* Timer Section */
.timer-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(232, 180, 184, 0.05);
  border: 1px solid var(--rose-glow);
  border-radius: 12px;
}

.timer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--rose-gold);
  font-weight: 600;
}

.timer i {
  font-size: 14px;
}

.btn-link {
  background: transparent;
  border: none;
  color: var(--rose-gold);
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s;
}

.btn-link:hover {
  background: rgba(232, 180, 184, 0.1);
}

.btn-link:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Password Strength */
.password-strength {
  margin-top: 8px;
}

.strength-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
  position: relative;
}

.strength-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--error);
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
}

.strength-bar[data-strength="weak"]::after {
  width: 25%;
  background: var(--error);
}

.strength-bar[data-strength="fair"]::after {
  width: 50%;
  background: var(--warning);
}

.strength-bar[data-strength="good"]::after {
  width: 75%;
  background: var(--success);
}

.strength-bar[data-strength="strong"]::after {
  width: 100%;
  background: var(--success);
}

.strength-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Password Requirements */
.password-requirements {
  padding: 20px;
  background: rgba(232, 180, 184, 0.05);
  border: 1px solid var(--rose-glow);
  border-radius: 12px;
}

.password-requirements h4 {
  font-family: var(--font-cormorant);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.password-requirements ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.requirement {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.requirement i {
  color: var(--text-secondary);
  font-size: 12px;
  transition: color 0.3s;
}

.requirement.valid i {
  color: var(--success);
}

.requirement.valid span {
  color: var(--text-primary);
}

/* Success Card */
.success-card {
  padding: 32px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.05);
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--success);
}

.success-card h3 {
  font-family: var(--font-cormorant);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.success-card p {
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Security Tips */
.security-tips {
  padding: 20px;
  background: rgba(232, 180, 184, 0.05);
  border: 1px solid var(--rose-glow);
  border-radius: 12px;
  width: 100%;
}

.security-tips h4 {
  font-family: var(--font-cormorant);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.security-tips ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.security-tips li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.security-tips i {
  color: var(--rose-gold);
  font-size: 12px;
  flex-shrink: 0;
}

/* Step Footer */
.step-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}

.step-footer.centered {
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  padding: 16px 24px;
  border-radius: 12px;
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 140px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--rose-gold);
  color: var(--rose-gold);
}

.btn-secondary:hover {
  background: rgba(232, 180, 184, 0.1);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--rose-gold);
  color: var(--obsidian);
  box-shadow: 0 6px 20px rgba(232, 180, 184, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(232, 180, 184, 0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-loader {
  display: none;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Help Section */
.help-section {
  max-width: 500px;
  width: 100%;
  padding: 24px;
  border-radius: 20px;
  margin-top: 20px;
}

.help-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.help-header i {
  font-size: 24px;
  color: var(--rose-gold);
}

.help-header h3 {
  font-family: var(--font-cormorant);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.help-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.help-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.help-link:hover {
  background: rgba(232, 180, 184, 0.05);
  color: var(--rose-gold);
}

.help-link i {
  font-size: 14px;
  width: 20px;
  text-align: center;
}

/* === RESPONSIVE STYLES === */
@media (max-width: 768px) {
  .topbar {
    height: 60px;
    padding: 0 16px;
  }
  
  .logo {
    font-size: 18px;
  }
  
  .recovery-progress {
    gap: 16px;
  }
  
  .step span {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .step-label {
    font-size: 9px;
  }
  
  .recovery-container {
    margin-top: 80px;
    padding: 20px 16px;
  }
  
  .recovery-card {
    padding: 24px 20px;
    border-radius: 20px;
  }
  
  .step-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
  
  .step-title {
    font-size: 24px;
  }
  
  .step-subtitle {
    font-size: 14px;
  }
  
  .code-input {
    width: 40px;
    height: 50px;
    font-size: 20px;
  }
  
  .btn {
    padding: 14px 20px;
    font-size: 14px;
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .step-footer {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .code-inputs {
    gap: 8px;
  }
  
  .code-input {
    width: 36px;
    height: 46px;
    font-size: 18px;
  }
}

/* Loading States */
.loading .btn-text {
  opacity: 0;
}

.loading .btn-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--rose-gold);
  outline-offset: 2px;
}

/* Utility Classes */
.hidden {
  display: none !important;
}