/* css/auth.css */

.auth-body { margin: 0; padding: 0; background: #f7f7f5; }

.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* LEFT panel */
.auth-panel-left {
  background: #0f0f0e;
  color: #fff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.auth-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: #fff;
  text-decoration: none;
  margin-bottom: auto;
}

.auth-panel-inner {
  padding-bottom: 48px;
}

.auth-panel-left h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.auth-panel-left p {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.auth-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-benefits li {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

/* RIGHT panel */
.auth-panel-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: #fff;
}

.auth-form-wrap {
  width: 100%;
  max-width: 400px;
}

/* Tabs */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 2px solid #eee;
}

.auth-tab {
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #999;
  padding: 10px 20px 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.auth-tab.active {
  color: #111;
  border-bottom-color: #111;
}

/* Forms */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.forgot-link {
  font-size: 0.78rem;
  color: #888;
  text-decoration: none;
  align-self: flex-end;
  margin-top: 2px;
}

.forgot-link:hover { color: #111; }

.trial-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #444;
  cursor: pointer;
  padding: 12px 14px;
  background: #f7f7f5;
  border-radius: 8px;
  border: 1.5px solid #e2e2de;
}

.trial-checkbox input[type=checkbox] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.btn-auth {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 4px;
}

.btn-auth:hover { background: #2a2a28; transform: translateY(-1px); }
.btn-auth:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-switch {
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}

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

/* Banners */
.auth-banner {
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.auth-banner-error   { background: #fdf0f0; border: 1px solid #f5c6c6; color: #b03030; }
.auth-banner-success { background: #eaf5ef; border: 1px solid #a8d8b9; color: #1a7a4a; }

/* Nav badge styles */
.nav-badge { display: flex; align-items: center; gap: 12px; font-size: 0.88rem; }
.nav-login-btn, .nav-link { color: #555; text-decoration: none; }
.nav-login-btn:hover, .nav-link:hover { color: #111; }
.nav-signup-btn {
  background: #111; color: #fff;
  padding: 8px 18px; border-radius: 999px;
  text-decoration: none; font-size: 0.85rem; font-weight: 600;
}
.nav-tier-badge {
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700;
}
.badge-pro { background: #111; color: #fff; }
.badge-free { background: #eee; color: #666; }
.nav-user-name { font-weight: 500; color: #333; }
.nav-logout-btn {
  background: none; border: none; font-size: 0.85rem;
  color: #999; cursor: pointer; font-family: inherit;
}
.nav-logout-btn:hover { color: #111; }

/* Sub status in preferences */
.sub-status-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sub-badge {
  padding: 4px 12px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700;
}
.sub-badge.pro   { background: #111; color: #fff; }
.sub-badge.trial { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.sub-badge.free  { background: #eee; color: #666; }

@media (max-width: 768px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-panel-left { display: none; }
  .auth-panel-right { min-height: 100vh; }
}
