/* ============================================
   认证页面样式
   ============================================ */

/* Auth Page Styles */
.auth-container {
  /* padding: 80px 0; */
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
}

.auth-card {
  max-width: 480px;
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 40px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.auth-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 10px;
  color: var(--text-color);
  font-family: var(--font-barlow);
}

.auth-description {
  text-align: center;
  margin-bottom: 30px;
  color: var(--secondary-text);
}

/* Login page specific tweaks */
body.page-template-oale-login-page .site-content {
  padding-top: 120px; /* compensate fixed header */
}

body.page-template-oale-login-page .auth-card {
  max-width: 480px;
}

.auth-error {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: 8px;
  background-color: rgba(255, 61, 0, 0.1);
  color: var(--error-color);
  font-size: 0.95rem;
}

.auth-demo-note {
  margin-top: 20px;
  font-size: 0.85rem;
  opacity: 0.7;
}

.auth-form {
  display: flex;
  flex-direction: column;
  /* gap: 20px; */
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  /* color: var(--primary-color); */
  color: #757575;
}

.input-with-icon input {
  padding-left: 45px;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--secondary-text);
  cursor: pointer;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-color, #111);
}

.forgot-password {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
}

.forgot-password:hover {
  text-decoration: underline;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--secondary-text);
  margin: 10px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--border-color);
}

.social-auth {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px;
  border-radius: 30px;
  width: 320px;
}

.btn-social.google {
  background-color: #fff;
  color: #333;
  border: 1px solid var(--border-color);
}

.btn-social.facebook {
  background-color: #3b5998;
  color: white;
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  color: var(--secondary-text);
}

.auth-switch a {
  color: var(--primary-color);
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* Password Strength Meter */
.password-strength {
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.strength-bar {
  height: 5px;
  flex: 1;
  background-color: var(--bg-lighter);
  border-radius: 5px;
  overflow: hidden;
}

.strength-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: 0;
  background-color: #ff5252;
  transition:
    width 0.3s ease,
    background-color 0.3s ease;
}

.password-requirements {
  list-style: none;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--secondary-text);
}

.password-requirements li {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.password-requirements .fa-check {
  color: var(--success-color);
  font-size: 0.7rem;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-card {
    background-color: transparent !important;
    border-radius: 15px;
    padding: 0 !important;
    max-width: auto;
    margin: 0 auto;
    box-shadow: none !important;
    border: none !important;
  }
  .reset-send-code {
    white-space: nowrap;
    padding: 6px 12px;
  }

  .social-auth {
    flex-direction: column;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

.divider {
  /* margin-top: 20px; */
}
