@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-mid: #5eead4;
  --white: #ffffff;
  --text: #134e4a;
  --muted: #6b7280;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
}

/* ── Left Panel ── */
.left-panel {
  flex: 1;
  background: linear-gradient(160deg, #0d9488 0%, #064e3b 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.left-panel::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: -100px; right: -100px;
}

.left-panel::after {
  content: '';
  position: absolute;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  bottom: 60px; left: -60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 60px;
}

.brand-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}

.brand-name {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: white;
  letter-spacing: 2px;
}

.left-headline {
  font-family: 'DM Serif Display', serif;
  font-size: 48px;
  color: white;
  line-height: 1.15;
  margin-bottom: 20px;
}

.left-headline em {
  font-style: italic;
  color: var(--teal-mid);
}

.left-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 360px;
}

.features {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
}

.feature-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal-mid);
  flex-shrink: 0;
}

/* ── Right Panel ── */
.right-panel {
  width: 480px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 50px;
  animation: slideIn 0.4s ease;
}

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

/* ── Tab Switcher ── */
.tab-switcher {
  display: flex;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 36px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--white);
  color: var(--teal);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ── Form ── */
.form-title {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: var(--text);
  margin-bottom: 8px;
}

.form-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 30px;
}

.form-panel { display: none; }
.form-panel.active { display: block; }

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 7px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
  background: white;
}

.form-group input:focus,
.form-group select:focus { border-color: var(--teal); }

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

.remember-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.remember-row label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.forgot {
  font-size: 13px;
  color: var(--teal);
  text-decoration: none;
}

/* ── Button ── */
.submit-btn {
  width: 100%;
  padding: 13px;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.3px;
}

.submit-btn:hover { background: var(--teal-dark); }
.submit-btn:disabled { background: #9ca3af; cursor: not-allowed; }

/* ── Messages ── */
.msg {
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

.msg.error {
  display: block;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.msg.success {
  display: block;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* ── Spinner ── */
.spinner {
  display: inline-block;
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

/* ── Responsive ── */
@media (max-width: 768px) {
  .left-panel { display: none; }
  .right-panel { width: 100%; padding: 40px 24px; }
}