/* ============================================
   Auth Container
   ============================================ */
/* Auth Page Section */
.auth-section {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #0a0c10 0%, #111318 50%, #0a0c10 100%);
}

.auth-container {
  width: 100%;
  max-width: 500px;
}

/* ============================================
   Auth Card
   ============================================ */
.auth-card {
  background: #1a1d24;
  border-radius: 20px;
  padding: 40px 48px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  margin-bottom: 24px;
}

.auth-logo img {
  height: 48px;
  width: auto;
  margin: 0 auto;
}

.auth-title {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Auth Tabs
   ============================================ */
.auth-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-tab:hover {
  color: rgba(255, 255, 255, 0.8);
}

.auth-tab.active {
  background: #2563EB;
  color: #ffffff;
}

/* ============================================
   Auth Form
   ============================================ */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.form-group .required {
  color: #ef4444;
}

.input-wrapper {
  position: relative;
  display: flex;
}

.input-wrapper input,
.input-wrapper select {
  flex: 1;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.input-wrapper input:focus {
  border-color: #2563EB;
  background: rgba(37, 99, 235, 0.1);
}

.input-wrapper .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 18px;
  pointer-events: none;
}

.input-wrapper input.has-icon {
  padding-left: 48px;
}

/* SMS Code Button */
.sms-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 14px;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-radius: 8px;
  color: #2563EB;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.sms-btn:hover:not(:disabled) {
  background: rgba(37, 99, 235, 0.3);
}

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

.sms-btn.counting {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Password Toggle */
.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 4px;
}

.password-toggle:hover {
  color: rgba(255, 255, 255, 0.7);
}

.password-toggle iconify-icon {
  font-size: 18px;
}

.input-wrapper input[type="password"],
.input-wrapper input[type="text"] {
  padding-right: 48px;
}

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

.strength-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.strength-bar.active.weak {
  background: #ef4444;
}

.strength-bar.active.medium {
  background: #f59e0b;
}

.strength-bar.active.strong {
  background: #10b981;
}

.strength-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.strength-text.weak {
  color: #ef4444;
}

.strength-text.medium {
  color: #f59e0b;
}

.strength-text.strong {
  color: #10b981;
}

/* Captcha */
.captcha-container {
  margin-bottom: 8px;
}

.captcha-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.captcha-wrapper:hover {
  border-color: rgba(37, 99, 235, 0.5);
  background: rgba(37, 99, 235, 0.05);
}

.captcha-wrapper verified {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.captcha-wrapper iconify-icon {
  font-size: 28px;
  color: rgba(255, 255, 255, 0.4);
  margin-right: 12px;
}

.captcha-wrapper span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.captcha-wrapper.verified iconify-icon {
  color: #10b981;
}

.captcha-wrapper.verified span {
  color: #10b981;
}

/* Agreement */
.agreement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.agreement input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #2563EB;
  cursor: pointer;
}

.agreement label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  cursor: pointer;
}

.agreement a {
  color: #2563EB;
  text-decoration: none;
}

.agreement a:hover {
  text-decoration: underline;
}

/* Submit Button */
.auth-submit {
  width: 100%;
  padding: 16px;
  background: #2563EB;
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-submit:hover:not(:disabled) {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-submit iconify-icon {
  font-size: 20px;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* Footer Links */
.auth-footer {
  text-align: center;
  margin-top: 24px;
}

.auth-footer a {
  font-size: 14px;
  color: #2563EB;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Error Message */
.error-message {
  display: none;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #ef4444;
  font-size: 13px;
  margin-bottom: 16px;
}

.error-message.show {
  display: flex;
  align-items: center;
  gap: 8px;
}

.error-message iconify-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* Success Message */
.success-message {
  display: none;
  padding: 12px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  color: #10b981;
  font-size: 13px;
  margin-bottom: 16px;
}

.success-message.show {
  display: flex;
  align-items: center;
  gap: 8px;
}

.success-message iconify-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* ============================================
   Login Specific
   ============================================ */
.login-methods {
  margin-bottom: 24px;
}

.method-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.method-tab {
  flex: 1;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.method-tab:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

.method-tab.active {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.4);
  color: #2563EB;
}

.method-tab iconify-icon {
  font-size: 18px;
}

.method-content {
  display: none;
}

.method-content.active {
  display: block;
}

/* ============================================
   Register Specific
   ============================================ */
.register-steps {
  margin-bottom: 24px;
}

.step-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-number {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: #2563EB;
  color: #ffffff;
}

.step.completed .step-number {
  background: #10b981;
  color: #ffffff;
}

.step-line {
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.step-line.active {
  background: #10b981;
}

.step-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.step.active .step-label {
  color: #2563EB;
}

.step.completed .step-label {
  color: #10b981;
}

/* ============================================
   Back to Home
   ============================================ */
.back-home {
  text-align: center;
  margin-top: 24px;
}

.back-home a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.back-home a:hover {
  color: #ffffff;
}

.back-home iconify-icon {
  font-size: 16px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 480px) {
  .auth-page {
    padding: 20px 16px;
  }

  .auth-card {
    padding: 28px 20px;
  }

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

  .step-label {
    display: none;
  }

  .step-line {
    width: 24px;
  }
}
