/* ============================================
   Auth Pages — login.php & register.php
   assets/css/auth.css
   ============================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: #f9fafb;
}

.auth-container {
  display: flex;
  width: 100%;
  max-width: 1000px;
  margin: auto;
  min-height: 600px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

/* ── Left Panel ─────────────────────────── */
.auth-left {
  flex: 1;
  background: linear-gradient(135deg, #0f1724 0%, #1a2e1e 60%, #0f1724 100%);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(29,158,117,0.3) 0%, transparent 60%);
}
.auth-left-content { position: relative; z-index: 1; }

.auth-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: #fff;
  font-size: 20px; font-weight: 800;
  margin-bottom: 40px;
}
.auth-logo .logo-dot {
  width: 10px; height: 10px;
  background: #1D9E75; border-radius: 50%;
  display: inline-block;
}

.auth-left h1 {
  font-size: 28px; font-weight: 800;
  color: #fff; margin: 0 0 12px;
  line-height: 1.3;
}
.auth-left p {
  color: rgba(255,255,255,0.7);
  font-size: 15px; margin: 0 0 32px;
  line-height: 1.6;
}

.auth-features { display: flex; flex-direction: column; gap: 12px; }
.auth-feature {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,0.85); font-size: 14px;
}
.auth-feature i {
  width: 32px; height: 32px;
  background: rgba(29,158,117,0.25);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #1D9E75; font-size: 16px; flex-shrink: 0;
}

/* ── Right Panel ────────────────────────── */
.auth-right {
  width: 420px;
  background: #fff;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  overflow-y: auto;
}
.auth-form-wrap { width: 100%; }

.auth-form-wrap h2 {
  font-size: 24px; font-weight: 800;
  color: #111827; margin: 0 0 4px;
}
.auth-sub {
  font-size: 14px; color: #6b7280; margin: 0 0 24px;
}
.auth-sub a { color: #1D9E75; font-weight: 600; text-decoration: none; }
.auth-sub a:hover { text-decoration: underline; }

/* Error */
.auth-error {
  background: #fef2f2; border: 1px solid #fecaca;
  color: #991b1b; padding: 12px 14px; border-radius: 8px;
  margin-bottom: 20px; font-size: 13px; line-height: 1.5;
  display: flex; align-items: flex-start; gap: 8px;
}
.auth-error i { flex-shrink: 0; margin-top: 1px; }

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

.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label {
  font-size: 13px; font-weight: 600; color: #374151;
  display: flex; align-items: center; justify-content: space-between;
}
.forgot-link {
  color: #1D9E75; font-size: 12px; font-weight: 500;
  text-decoration: none;
}
.forgot-link:hover { text-decoration: underline; }

.input-icon-wrap {
  position: relative; display: flex; align-items: center;
}
.input-icon-wrap > i:first-child {
  position: absolute; left: 12px;
  color: #9ca3af; font-size: 18px; pointer-events: none;
}
.input-icon-wrap input {
  width: 100%; padding: 10px 40px 10px 38px;
  border: 1px solid #e5e7eb; border-radius: 8px;
  font-size: 14px; color: #111827; background: #fff;
  box-sizing: border-box; transition: border .2s;
}
.input-icon-wrap input:focus {
  outline: none; border-color: #1D9E75;
  box-shadow: 0 0 0 3px rgba(29,158,117,.1);
}
.toggle-pwd {
  position: absolute; right: 10px;
  background: none; border: none; cursor: pointer;
  color: #9ca3af; font-size: 16px; padding: 4px;
}
.toggle-pwd:hover { color: #374151; }

/* Password strength */
.pwd-strength {
  height: 4px; background: #e5e7eb; border-radius: 2px;
  margin-top: 4px; overflow: hidden;
}
.pwd-bar {
  height: 100%; width: 0; border-radius: 2px;
  transition: width .3s, background .3s;
}

/* Remember / Agree */
.remember-label, .agree-label {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: #374151; cursor: pointer;
  line-height: 1.4;
}
.agree-label a { color: #1D9E75; }

/* Submit */
.auth-submit-btn {
  background: #1D9E75; color: #fff;
  border: none; border-radius: 8px;
  padding: 12px 20px; font-size: 15px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 8px; transition: background .2s;
  margin-top: 4px;
}
.auth-submit-btn:hover { background: #157a5a; }

/* Divider */
.auth-divider {
  text-align: center; position: relative;
  margin: 20px 0; color: #9ca3af; font-size: 13px;
}
.auth-divider::before {
  content: ''; position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px; background: #e5e7eb;
}
.auth-divider span {
  background: #fff; padding: 0 12px; position: relative;
}

/* Alt button */
.auth-alt-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid #e5e7eb; border-radius: 8px;
  padding: 11px 20px; font-size: 14px; font-weight: 600;
  color: #374151; text-decoration: none; transition: all .2s;
}
.auth-alt-btn:hover { border-color: #1D9E75; color: #1D9E75; }

.auth-footer-note {
  font-size: 12px; color: #9ca3af; text-align: center; margin-top: 20px;
}
.auth-footer-note a { color: #1D9E75; }

/* Responsive */
@media (max-width: 768px) {
  .auth-container { flex-direction: column; border-radius: 0; margin: 0; min-height: 100vh; }
  .auth-left { padding: 32px 24px; flex: none; }
  .auth-right { width: 100%; padding: 32px 24px; }
  .auth-features { display: none; }
}
