/* Auth Pages Styles (Login, Register, Verify) */

/* Lucide Icons */
.auth-icon i {
  width: 48px;
  height: 48px;
  stroke-width: 1.5;
  margin-bottom: 15px;
}

.form-group label i {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  opacity: 0.7;
}

.btn i {
  width: 18px;
  height: 18px;
  margin-left: 8px;
}

.auth-link i {
  width: 14px;
  height: 14px;
  margin-left: 6px;
}

/* Fix icon alignment */
.form-group label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-container {
  background: var(--bg-primary);
  border-radius: 16px;
  box-shadow: 0 20px 40px var(--shadow);
  overflow: hidden;
  width: 100%;
  max-width: 420px;
  animation: slideUp 0.6s ease-out;
}

.auth-header {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  padding: 30px 20px;
  text-align: center;
}

.auth-header h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.auth-header p {
  opacity: 0.9;
  font-size: 14px;
  line-height: 1.5;
}

.auth-form {
  padding: 30px;
}

.auth-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.auth-link:hover {
  color: #3b82f6;
}

.verification-code-input {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 4px;
  padding: 16px;
}

.email-info {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0c4a6e;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
}

.email-info i {
  width: 16px;
  height: 16px;
  margin-left: 6px;
  vertical-align: middle;
}

.resend-section {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.form-help {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
  line-height: 1.4;
}

/* Password Strength Indicator */
.password-strength {
  margin-top: 8px;
  font-size: 12px;
  display: block !important;
}

.strength-weak {
  color: #ef4444;
}

.strength-medium {
  color: #f59e0b;
}

.strength-strong {
  color: #10b981;
}

/* Password Toggle Button */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  padding-left: 45px;
  width: 100%;
}

.password-toggle {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: var(--primary-color);
}

[data-theme="dark"] .password-toggle {
  color: #94a3b8;
}

[data-theme="dark"] .password-toggle:hover {
  color: var(--primary-color);
}

.password-toggle i,
.password-toggle svg {
  width: 20px;
  height: 20px;
}

/* Responsive Design */
@media (max-width: 480px) {
  .auth-container {
    max-width: 100%;
    margin: 10px;
  }
  
  .auth-form {
    padding: 20px;
  }
  
  .auth-header {
    padding: 25px 20px;
  }
  
  .auth-header h1 {
    font-size: 20px;
  }
  
  .password-strength {
    font-size: 11px;
    margin-top: 6px;
  }
}


/* ==================== Emergency Link Section ==================== */
.emergency-link-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 25px 30px;
}

.emergency-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.emergency-icon {
  font-size: 24px;
}

.emergency-header h3 {
  margin: 0;
  font-size: 16px;
  color: var(--text-primary);
}

.emergency-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.emergency-form {
  display: flex;
  gap: 10px;
}

.emergency-form .form-control {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: lowercase;
}

.emergency-form .btn {
  white-space: nowrap;
  padding: 12px 20px;
}

.emergency-result {
  margin-top: 15px;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.emergency-result.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.emergency-result.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.emergency-result .config-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.emergency-result .copy-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
}

.emergency-result .copy-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.emergency-result .copy-btn.copied {
  background: #22c55e;
}

/* Responsive */
@media (max-width: 480px) {
  .emergency-link-section {
    padding: 20px;
  }
  
  .emergency-form {
    flex-direction: column;
  }
  
  .emergency-form .btn {
    width: 100%;
  }
}


/* ==================== Register Methods ==================== */
.register-methods {
  margin-top: 20px;
}

.methods-title {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-size: 14px;
}

.btn-method {
  width: 100%;
  margin-bottom: 12px;
}

.btn-google {
  background: white;
  color: #333;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-google:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.google-icon {
  flex-shrink: 0;
}

.divider {
  display: flex;
  align-items: center;
  margin: 15px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.divider span {
  padding: 0 15px;
  color: var(--text-secondary);
  font-size: 13px;
}

.register-step {
  animation: fadeIn 0.3s ease;
}

#backToMethodsBtn {
  margin-top: 10px;
  width: 100%;
}
