/* ─── สไตล์ชีทหน้าล็อกอินและสมัครสมาชิก: auth.css ─── */

body {
  margin: 0;
  padding: 0;
  font-family: 'Prompt', sans-serif;
  background-color: #fff;
  color: #333;
}

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

/* ── Left Panel ── */
.auth-panel {
  background: #15519d;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.auth-panel::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.auth-panel::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -150px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.panel-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 3rem;
  box-sizing: border-box;
}

.panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0;
}

.panel-body h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  letter-spacing: -0.03em;
}

.panel-body p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin: 0 0 2rem;
  max-width: 320px;
}

.panel-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.panel-features .feat {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
}

.panel-features .feat .material-icons {
  font-size: 1.1rem;
  color: #fff;
}

/* Stepper styles for Registration */
.panel-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step .step-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  padding-top: 0.1rem;
  flex-shrink: 0;
}

.step .step-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

.step .step-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.15rem;
}

.panel-price {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
}

.panel-price strong {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
}

/* ── Right Form ── */
.auth-form-side {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}

.auth-form-inner {
  width: 100%;
  max-width: 380px;
}

.back-to-home {
  margin-bottom: 2rem;
}

.back-to-home .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #4b5563;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.back-to-home .back-link:hover {
  color: #15519d;
}

.back-to-home .back-link .material-icons {
  font-size: 1.1rem;
}

.form-header {
  margin-bottom: 2.5rem;
}

.form-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #15519d;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}

.form-header p {
  font-size: 0.875rem;
  color: #9ca3af;
  margin: 0;
  line-height: 1.5;
}

.error-msg {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fef2f2;
  border-left: 3px solid #ef4444;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #dc2626;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.error-msg .material-icons {
  font-size: 1.1rem;
}

.success-msg {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f0fdf4;
  border-left: 3px solid #22c55e;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #15803d;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.success-msg .material-icons {
  font-size: 1.1rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.8rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 4px;
  outline: none;
  font-size: 0.9rem;
  font-family: 'Prompt', sans-serif;
  color: #111;
  background: #fafafa;
  transition: border-color 0.15s, background 0.15s;
}

.field input::placeholder {
  color: #d1d5db;
}

.field input:focus {
  border-color: #15519d;
  background: #fff;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  padding-right: 3rem;
}

.input-wrap .eye-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #d1d5db;
  display: flex;
  align-items: center;
  padding: 0;
}

.input-wrap .eye-btn:hover {
  color: #6b7280;
}

.input-wrap .eye-btn .material-icons {
  font-size: 1.1rem;
}

.forgot-link {
  text-align: right;
  margin-top: -0.5rem;
}

.forgot-link a {
  font-size: 0.85rem;
  color: #15519d;
  text-decoration: none;
}

.forgot-link a:hover {
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 0.9rem;
  background: #15519d;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Prompt', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.02em;
  margin-top: 0.25rem;
}

.btn-submit:hover {
  background: #1f2937;
}

.divider {
  text-align: center;
  margin: 1.5rem 0 1rem;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: #f3f4f6;
}

.divider span {
  position: relative;
  background: #fff;
  padding: 0 0.75rem;
  font-size: 0.78rem;
  color: #d1d5db;
}

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

.switch a {
  color: #15519d;
  text-decoration: none;
  font-weight: 600;
}

.switch a:hover {
  text-decoration: underline;
}

/* ── Mobile brand ── */
.mobile-brand {
  display: none;
  margin-bottom: 2rem;
}

.mobile-brand a {
  font-size: 1.1rem;
  font-weight: 700;
  color: #15519d;
  text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .auth-page { grid-template-columns: 40% 1fr; }
  .panel-inner { padding: 2rem; }
  .panel-body h2 { font-size: 1.8rem; }
  .auth-form-side { padding: 2.5rem 1.5rem; }
}

@media (max-width: 768px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-panel { display: none; }
  .mobile-brand { display: block; }
  .field-row { grid-template-columns: 1fr; }
}
