/* Yektapanel Login Styles - Similar to Karen Theme */

/* Background Image Styles */
.login-bg-image {
  position: absolute;
  top: 15px;
  left: 17px;
  width: calc(50% - 29px);
  height: calc(100% - 30px);
  object-fit: cover;
  object-position: center;
  border-radius: 30px;
  display: block;
}

@media (max-width: 1023px) {
  .login-bg-image {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .login-bg-image {
    display: block !important;
  }
}

/* Social Login Divider */
.social-login-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
}

.social-login-divider::before,
.social-login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.social-login-divider span {
  padding: 0 16px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
}

/* Google Login Button */
.google-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 24px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.google-login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.05) 0%, rgba(234, 67, 53, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.google-login-btn:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.google-login-btn:hover::before {
  opacity: 1;
}

.google-login-btn svg {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.google-login-btn:active {
  transform: translateY(0);
}

/* Missing Tailwind Classes */
.w-14 {
  width: 3.5rem;
}

.h-14 {
  height: 3.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.p-4 {
  padding: 1rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-green-500 {
  color: rgb(34 197 94);
}

.m-0 {
  margin: 0;
}

.light-1,
.bg-light-1 {
  background-color: #f3f4f6;
}

/* User Info Display Box */
.user-info-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.user-info-display:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.user-info-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.user-icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.user-info-display .user-identifier-display {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  direction: ltr;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Edit Button */
.btn-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-edit svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.btn-edit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
}

.btn-edit:active {
  transform: translateY(0);
}

/* Login with Password Link */
.switch-to-password,
.switch-to-sms {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.switch-to-password:hover,
.switch-to-sms:hover {
  opacity: 0.8;
}

.switch-to-password svg,
.switch-to-sms svg {
  width: 18px;
  height: 18px;
  color: currentColor;
}

/* Form Field Styles */
.field-tw {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: #fff;
}

.field-tw:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.field-tw.ltr {
  direction: ltr;
  text-align: left;
}

/* Password Field with Eye Toggle */
.password-field-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 16px;
}

.password-field-wrapper .field-tw {
  padding-left: 50px;
}

.password-toggle {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.password-toggle:hover {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

/* Default state: password hidden, show closed eye */
.password-toggle .eye-open {
  display: none !important;
}

.password-toggle .eye-closed {
  display: block;
}

/* Active state: password visible, show open eye */
.password-toggle.active .eye-closed {
  display: none !important;
}

.password-toggle.active .eye-open {
  display: block !important;
}

/* Pulse Loader Animation */
.pulse-container {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.pulse-bubble {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  animation: pulse 1.4s infinite ease-in-out both;
}

.pulse-bubble-1 {
  animation-delay: -0.32s;
}

.pulse-bubble-2 {
  animation-delay: -0.16s;
}

@keyframes pulse {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Verification Code Inputs */
.verification-inputs {
  display: flex;
  gap: 12px;
  justify-content: center;
  direction: ltr;
}

.verification-inputs input {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.verification-inputs input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.verification-inputs input::-webkit-outer-spin-button,
.verification-inputs input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.verification-inputs input[type=number] {
  -moz-appearance: textfield;
}

/* Timer Styles */
.timer-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
}

.timer-text .time {
  font-weight: bold;
  color: #1f2937;
  font-family: 'Arial', sans-serif;
}

/* Action Links */
.action-link {
  color: #3b82f6;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.3s ease;
  font-size: 14px;
}

.action-link:hover {
  color: #2563eb;
}

.action-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Info Messages */
.info-message {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: #1e40af;
  font-size: 14px;
  margin-bottom: 16px;
}

.info-message i {
  font-size: 18px;
}

/* Error Messages */
.error-message {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
  font-size: 14px;
  margin-bottom: 16px;
}

/* Success Messages */
.success-message {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: #15803d;
  font-size: 14px;
  margin-bottom: 16px;
}

/* Hidden State */
.hidden {
  display: none !important;
}

/* Readonly Input Style */
input[readonly] {
  background-color: #f9fafb;
  cursor: not-allowed;
}

/* Button Loading State */
button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Smooth Transitions */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Persian Number Support */
.persian-number {
  font-family: 'IRANSans', 'Tahoma', sans-serif;
}

/* ============================================
   FORGOT PASSWORD SECTION STYLES
   ============================================ */

/* Forgot Password Container */
.login-step-forgot,
.login-step-forgot-verify,
.login-step-new-password {
  animation: fadeIn 0.4s ease-out;
}

/* Back Button */
.back-to-login,
.back-to-forgot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #475569 !important;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none !important;
  margin-bottom: 24px;
}

.back-to-login:hover,
.back-to-forgot:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-color: #cbd5e1;
  transform: translateX(4px);
}

.back-to-login i,
.back-to-forgot i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.back-to-login:hover i,
.back-to-forgot:hover i {
  transform: translateX(4px);
}

/* Forgot Password Title */
.forgot-title {
  text-align: center;
  margin-bottom: 32px;
}

.forgot-title h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.forgot-title p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

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

/* Recovery Option Button */
.recovery-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  text-align: right;
  position: relative;
  overflow: hidden;
}

.recovery-option::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.recovery-option:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

.recovery-option:hover::before {
  opacity: 1;
}

.recovery-option:active {
  transform: translateY(0);
}

/* Recovery Option Icon */
.recovery-option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.recovery-option:hover .recovery-option-icon {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.recovery-option-icon svg,
.recovery-option-icon i {
  width: 24px;
  height: 24px;
  color: #fff;
  font-size: 24px;
}

/* Recovery Option Content */
.recovery-option-content {
  flex: 1;
  min-width: 0;
}

.recovery-option-title {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

.recovery-option:hover .recovery-option-title {
  color: #3b82f6;
}

.recovery-option-subtitle {
  font-size: 13px;
  color: #64748b;
  direction: ltr;
  text-align: right;
  font-family: 'Arial', sans-serif;
  letter-spacing: 1px;
}

/* Recovery Option Arrow */
.recovery-option-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f1f5f9;
  border-radius: 8px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.recovery-option-arrow svg,
.recovery-option-arrow i {
  width: 18px;
  height: 18px;
  color: #64748b;
  font-size: 18px;
  transition: all 0.3s ease;
}

.recovery-option:hover .recovery-option-arrow {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
}

.recovery-option:hover .recovery-option-arrow svg,
.recovery-option:hover .recovery-option-arrow i {
  color: #fff;
  transform: translateX(-4px);
}

/* Email Recovery Success Message */
.email-sent-success {
  text-align: center;
  padding: 40px 24px;
  animation: fadeIn 0.4s ease-out;
}

.email-sent-success .success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.email-sent-success .success-icon svg {
  width: 40px;
  height: 40px;
  color: #fff;
}

.email-sent-success h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.email-sent-success p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 640px) {
  .verification-inputs input {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .verification-inputs {
    gap: 8px;
  }
  
  .recovery-option {
    padding: 16px;
    gap: 12px;
  }
  
  .recovery-option-icon {
    width: 44px;
    height: 44px;
  }
  
  .recovery-option-icon svg,
  .recovery-option-icon i {
    width: 20px;
    height: 20px;
    font-size: 20px;
  }
}
