/* ========================================
   EZER — AUTH PAGES (LOGIN & SIGNUP)
======================================== */

.auth-body {
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Minimal navbar */
.auth-nav {
  padding: 16px 32px;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
}
.auth-nav .nav-logo img { height: 36px; width: auto; }

/* Layout */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  min-height: calc(100vh - 69px);
}

/* Left Panel */
.auth-left {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0f2547 100%);
  padding: 64px 56px;
  display: flex;
  align-items: center;
}

.auth-left-content h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.3;
}

.auth-left-content > p {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin-bottom: 32px;
}

.auth-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.auth-benefits li {
  font-size: 15px;
  color: rgba(255,255,255,0.88);
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-testimonial {
  background: rgba(255,255,255,0.08);
  border-left: 3px solid var(--color-accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.auth-testimonial p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 8px;
}

.auth-testimonial span {
  font-size: 12px;
  color: var(--color-accent);
  font-weight: 600;
}

/* Right Panel */
.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  overflow-y: auto;
}

.auth-card {
  width: 100%;
  max-width: 440px;
}

.auth-card-header {
  margin-bottom: 28px;
}

.auth-card-header h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.auth-card-header p {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.auth-card-header a {
  color: var(--color-accent);
  font-weight: 600;
  transition: color 0.2s;
}
.auth-card-header a:hover { color: var(--color-accent-dark); }

/* Social Button */
.social-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 20px;
}
.social-btn:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--color-text-secondary);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-group input,
.form-group select {
  padding: 11px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--color-text-primary);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(42,191,163,0.12);
}

.form-group input::placeholder { color: var(--color-text-secondary); }

.forgot-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}
.forgot-link:hover { color: var(--color-accent-dark); }

/* Password toggle */
.password-wrapper {
  position: relative;
}
.password-wrapper input { padding-right: 44px; }

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-secondary);
  padding: 0;
  display: flex;
  transition: color 0.2s;
}
.toggle-password:hover { color: var(--color-primary); }

/* Password strength */
.password-strength {
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
  min-height: 16px;
  transition: color 0.2s;
}
.strength-weak { color: var(--color-error); }
.strength-fair { color: #F59E0B; }
.strength-strong { color: var(--color-success); }

/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.form-checkbox input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--color-accent);
  flex-shrink: 0;
  cursor: pointer;
}
.form-checkbox a { color: var(--color-accent); font-weight: 600; }

/* Error message */
.form-error {
  font-size: 13px;
  color: var(--color-error);
  background: rgba(239,68,68,0.08);
  border-radius: var(--radius-sm);
  padding: 0;
  min-height: 0;
  transition: all 0.2s;
}
.form-error.visible { padding: 10px 14px; }

/* Footer note */
.auth-footer-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--color-text-secondary);
  text-align: center;
  line-height: 1.6;
}
.auth-footer-note a { color: var(--color-accent); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 40px 24px; }
  .auth-card { max-width: 100%; }
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .auth-nav { padding: 14px 20px; }
}