/* Login Page Styles */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--bg-primary);
  padding: 1rem;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 6px var(--shadow);
  animation: slideUp 0.5s ease-out;
}

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

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo {
  height: 40px;
  width: auto;
  margin-bottom: 0.5rem;
}

.login-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0.5rem 0;
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

.login-label {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.login-input {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
}

.login-input:focus {
  background: var(--bg-secondary);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.login-input::placeholder {
  color: var(--text-secondary);
}

.login-input-prefix {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 500;
}

.login-otp-input {
  font-size: 1.5rem;
  letter-spacing: 0.5rem;
  font-weight: 600;
  font-family: "Courier New", monospace;
}

.login-btn {
  background: var(--accent-primary);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

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

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-otp-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.login-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.login-footer p {
  margin: 0;
  font-size: 0.8rem;
}

/* Registration Section */
.registration-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
}

.registration-steps::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-color);
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  position: relative;
  z-index: 1;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.step.active .step-circle {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
  box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.1);
}

.step-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
}

.step.active .step-label {
  color: var(--accent-primary);
  font-weight: 600;
}

.registration-form {
  animation: fadeInUp 0.4s ease-out;
}

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

/* Form Controls */
.form-control {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  background: var(--bg-secondary) !important;
  border-color: var(--accent-primary) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
  color: var(--text-secondary);
}

.form-label {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* Verification Buttons */
.btn-success {
  background: var(--accent-buy) !important;
  border: none !important;
  color: white !important;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-success:hover {
  background: #059669 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Outline Button */
.btn-outline-secondary {
  color: var(--text-primary) !important;
  border-color: var(--border-color) !important;
  background: transparent !important;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
  background: var(--bg-secondary) !important;
  border-color: var(--text-secondary) !important;
  color: var(--text-primary) !important;
}

/* Badge Styling */
.badge {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 500;
}

.badge.bg-success {
  background: rgba(16, 185, 129, 0.15) !important;
  color: var(--accent-buy);
  border: 1px solid var(--accent-buy);
}

/* Small text */
small {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Helper text for form fields */
.form-text {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 576px) {
  .login-card {
    padding: 1.25rem; /* Updated from 1.5rem */
  }

  .login-title {
    font-size: 1.5rem;
  }

  .login-input {
    font-size: 0.95rem;
  }

  /* Registration Responsive additions */
  .registration-steps {
    margin-bottom: 1.5rem;
    gap: 0.5rem;
  }

  .step-circle {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .step-label {
    font-size: 0.7rem;
  }

  .registration-steps::before {
    top: 18px;
  }

  .form-control {
    font-size: 0.9rem;
    padding: 0.65rem 0.9rem;
  }
}

/* Alert Styling */
.alert {
  border-radius: 8px;
  border: none;
  animation: slideDown 0.3s ease-out;
}

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

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-buy);
}

.alert-danger {
  background: rgba(248, 113, 113, 0.1);
  color: var(--accent-sell);
}

.btn-close {
  filter: invert(0.8);
}

[data-theme="dark"] .btn-close {
  filter: invert(0.8);
}
