/*
 * Guest Post Buddy – login-forms.css
 * Styles for all auth/login-forms pages:
 * Login, Register, Forgot Password, Reset Password.
 */

/* =============================================
   AUTH PAGE LAYOUT
   ============================================= */

.gpb-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 2rem) 1rem 2rem;
  background: var(--clr-bg);
}

.auth-container {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.auth-back-wrap {
  margin-top: 16px;
  text-align: center;
}

.auth-container-lg {
  max-width: 860px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 800px) {
  .auth-container-lg {
    grid-template-columns: 1fr;
  }

  .auth-benefits {
    display: none;
  }
}

.auth-header {
  text-align: center;
  padding-top: var(--space-xl);
  margin-bottom: 2rem;
}

.auth-header--logo .gpb-logo,
.auth-header--logo .auth-page-logo {
  justify-content: center;
  margin: 0 auto 8px;
}

.auth-header h1 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.auth-body {
  padding: 0 var(--space-lg) var(--space-xl);
}

/* Improve vertical alignment in Sign In/Register inputs */
.auth-body input.form-control,
.auth-body select.form-control {
  min-height: 48px;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  line-height: 1.35;
}

/* =============================================
   PASSWORD INPUT + TOGGLE
   ============================================= */

.input-password-wrap {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--clr-text-light);
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
}

.toggle-password:hover,
.toggle-password.active {
  color: var(--clr-primary);
}

.form-label-link {
  float: right;
  font-size: 0.8rem;
  color: var(--clr-primary);
  font-weight: 500;
  text-transform: none;
}

/* =============================================
   PASSWORD STRENGTH METER
   ============================================= */

.password-strength {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.strength-bar {
  flex: 1;
  height: 4px;
  background: var(--clr-border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.strength-fill {
  height: 100%;
  width: 0;
  transition: width 0.3s, background 0.3s;
}

.strength-label {
  font-size: 0.75rem;
  font-weight: 600;
}

/* =============================================
   CHECKBOX LABEL
   ============================================= */

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--clr-text-muted);
}

.checkbox-label input {
  margin-top: 4px;
}

/* =============================================
   AUTH SWITCH + TRUST STRIP
   ============================================= */

.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.auth-switch a {
  font-weight: 600;
}

.auth-trust-strip {
  margin-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.auth-trust-strip span {
  font-size: 0.73rem;
  border: 1px solid var(--clr-border);
  border-radius: 999px;
  padding: 0.3rem 0.72rem;
  color: var(--clr-text-light);
  background: color-mix(in srgb, var(--clr-surface) 85%, transparent);
}

/* =============================================
   AUTH BENEFITS SIDE PANEL
   ============================================= */

.auth-benefits {
  background: var(--gradient-hero);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-benefits h3 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.benefits-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.benefit-icon {
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.benefits-list p {
  color: #CBD5E1;
  font-size: 0.85rem;
  margin: 4px 0 0;
  line-height: 1.4;
}

/* =============================================
   PREMIUM POLISH
   ============================================= */

.gpb-auth-page-premium {
  position: relative;
  overflow: hidden;
}

.gpb-auth-glow {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 420px;
  background: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.2), transparent 55%),
              radial-gradient(circle at 80% 30%, rgba(139, 92, 246, 0.16), transparent 50%);
  pointer-events: none;
}

.auth-card-premium {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.auth-body-premium { padding-top: var(--space-md); }

.gpb-reg-errors {
  background: #FEF2F2;
  color: #991B1B;
  border-left: 4px solid #EF4444;
  padding: 14px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.gpb-reg-errors strong {
  display: block;
  margin-bottom: 6px;
}

.gpb-reg-error-item {
  margin: 4px 0;
}

.password-strength {
  margin-top: 6px;
  display: none;
}

.gpb-resend-verify-form {
  margin-bottom: 20px;
  padding: 16px;
  background: #F9FAFB;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.gpb-resend-verify-form .form-group {
  margin-bottom: 12px;
}

.auth-remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gpb-auth-form-premium .form-control {
  min-height: 50px;
  border-radius: 12px;
}

.auth-benefits-premium {
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.16);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
  .auth-trust-strip { justify-content: center; }
}

@media (max-width: 600px) {
  .auth-container {
    padding: 0 16px;
  }

  .auth-header {
    padding-left: 24px;
    padding-right: 24px;
  }

  .auth-body {
    padding: 0 24px 32px;
  }
}
