/* =========================================================
   login.css — Dedicated styles for Login / Signup page
   Theme: Light · Brand color #c96 · Font: Poppins
   ========================================================= */

/* ── Page Shell ─────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: #f7f5f2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem;
}

/* ── Auth Card ──────────────────────────────────────────── */
.auth-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.04),
    0 20px 50px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: 100%;
  max-width: 520px;
  animation: authCardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

/* ── Card Header / Brand Strip ──────────────────────────── */
.auth-brand {
  text-align: center;
  padding: 3.6rem 3.6rem 2.4rem;
  border-bottom: 1px solid #f0ede8;
}

.auth-brand .brand-logo {
  display: inline-block;
  margin-bottom: 1.2rem;
}

.auth-brand .brand-logo img {
  height: 32px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.auth-brand-tagline {
  font-size: 1.35rem;
  color: #999;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0;
}

/* ── Tab Navigation ─────────────────────────────────────── */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid #f0ede8;
  background: #faf9f7;
}

.auth-tab-btn {
  flex: 1;
  padding: 1.6rem 0;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aaa;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  font-family: "Poppins", sans-serif;
}

.auth-tab-btn:hover {
  color: #c96;
  background: #fdf8f2;
}

.auth-tab-btn.active {
  color: #c96;
  border-bottom-color: #c96;
  background: #ffffff;
}

/* ── Tab Panels ─────────────────────────────────────────── */
.auth-tab-content {
  padding: 3.2rem 3.6rem 3.6rem;
  position: relative;
  overflow: hidden;
}

.auth-panel {
  display: none;
  animation: panelFadeIn 0.35s ease both;
}

.auth-panel.active {
  display: block;
}

@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── Section Title ──────────────────────────────────────── */
.auth-title {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 1.35rem;
  color: #999;
  margin-bottom: 2.8rem;
  font-weight: 300;
}

/* ── Form Groups ────────────────────────────────────────── */
.auth-form-group {
  margin-bottom: 2rem;
  position: relative;
}

.auth-label {
  display: block;
  font-size: 1.2rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 0.7rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.auth-input {
  width: 100%;
  height: 52px;
  padding: 0 1.6rem;
  font-size: 1.4rem;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  color: #444;
  background: #faf9f7;
  border: 1.5px solid #e8e4de;
  border-radius: 10px;
  outline: none;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
  -webkit-appearance: none;
}

.auth-input::placeholder {
  color: #bbb;
}

.auth-input:hover {
  border-color: #d4c4b0;
  background: #fdfcfa;
}

.auth-input:focus {
  border-color: #c96;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(204, 153, 102, 0.12);
}

.auth-input.input-error {
  border-color: #e74c3c;
  background: #fff8f8;
}

.auth-input.input-success {
  border-color: #27ae60;
}

/* ── Input with icon (password eye toggle) ──────────────── */
.auth-input-wrap {
  position: relative;
}

.auth-input-wrap .auth-input {
  padding-right: 4.8rem;
}

.auth-eye-toggle {
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #bbb;
  font-size: 1.6rem;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
}

.auth-eye-toggle:hover {
  color: #c96;
}

/* ── Inline field error ─────────────────────────────────── */
.auth-field-error {
  display: block;
  font-size: 1.2rem;
  color: #e74c3c;
  margin-top: 0.5rem;
  font-weight: 400;
}

/* ── Submit Button ──────────────────────────────────────── */
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  height: 52px;
  padding: 0 2.4rem;
  font-size: 1.35rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c96;
  background: transparent;
  border: 2px solid #c96;
  border-radius: 10px;
  cursor: pointer;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.15s ease;
  margin-top: 0.8rem;
}

.auth-btn:hover {
  background: #c96;
  color: #fff;
  box-shadow: 0 8px 24px rgba(204, 153, 102, 0.3);
  transform: translateY(-1px);
}

.auth-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(204, 153, 102, 0.2);
}

.auth-btn i {
  font-size: 1.6rem;
  transition: transform 0.25s ease;
}

.auth-btn:hover i {
  transform: translateX(4px);
}

/* ── Footer Links ───────────────────────────────────────── */
.auth-footer-link {
  display: block;
  text-align: center;
  margin-top: 2rem;
  font-size: 1.3rem;
  color: #999;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-footer-link:hover {
  color: #c96;
}

.auth-forgot-link {
  display: block;
  text-align: right;
  font-size: 1.25rem;
  color: #aaa;
  margin-top: 0.6rem;
  margin-bottom: 0.2rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-forgot-link:hover {
  color: #c96;
}

/* ── Divider ────────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 2.4rem 0;
  color: #ccc;
  font-size: 1.2rem;
  font-weight: 300;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ebebeb;
}

/* ── Email live-check badge ─────────────────────────────── */
.auth-email-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  margin-top: 0.5rem;
  font-weight: 400;
  transition: all 0.2s ease;
}

.auth-email-status.ok {
  color: #27ae60;
}

.auth-email-status.err {
  color: #e74c3c;
}

/* ── Password strength meter ────────────────────────────── */
.password-strength-bar {
  height: 3px;
  border-radius: 4px;
  margin-top: 0.6rem;
  background: #ebebeb;
  position: relative;
  overflow: hidden;
}

.password-strength-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease, background 0.4s ease;
  width: 0%;
  background: #e74c3c;
}

.password-strength-fill.weak { width: 33%; background: #e74c3c; }
.password-strength-fill.medium { width: 66%; background: #f39c12; }
.password-strength-fill.strong { width: 100%; background: #27ae60; }

/* ── Loading spinner on submit ──────────────────────────── */
.auth-btn.loading .auth-btn-text { display: none; }
.auth-btn.loading::after {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 576px) {
  .auth-card {
    border-radius: 16px;
    max-width: 100%;
  }

  .auth-brand {
    padding: 2.8rem 2.4rem 2rem;
  }

  .auth-tab-content {
    padding: 2.4rem 2rem 2.8rem;
  }

  .auth-title {
    font-size: 1.8rem;
  }
}
