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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100vh;
  background: #f1f5f9;
}

.auth-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ── LEFT PANEL ── */
.left-panel {
  width: 42%;
  background: #071730;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.left-content {
  position: relative; z-index: 2;
  max-width: 340px; width: 100%;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; margin-bottom: 48px;
}

.brand-logo {
  height: 70px;
  width: auto;
  margin-left:-18px;
  filter: brightness(0) invert(1);
}

.left-title {
  font-size: 32px; font-weight: 800;
  color: white; line-height: 1.2;
  margin-bottom: 14px; letter-spacing: -0.5px;
}

.left-sub {
  font-size: 13.5px; color: rgba(255,255,255,0.5);
  line-height: 1.7; margin-bottom: 36px; font-weight: 300;
}

.feature-list {
  display: flex; flex-direction: column; gap: 18px;
}

.feature-item {
  display: flex; align-items: center; gap: 14px;
}

.feature-icon {
  width: 38px; height: 38px;
  background: rgba(26,127,142,0.2);
  border: 1px solid rgba(26,127,142,0.3);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #1a7f8e; font-size: 14px; flex-shrink: 0;
}

.feature-title {
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.85); margin-bottom: 2px;
}

.feature-desc {
  font-size: 11.5px; color: rgba(255,255,255,0.38); font-weight: 300;
}

/* ── RIGHT PANEL ── */
.right-panel {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 32px;
  background: #f8fafd;
  overflow-y: auto;
}

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

.form-header { margin-bottom: 28px; }

.form-title {
  font-size: 26px; font-weight: 800;
  color: #0f1f3d; margin-bottom: 6px; letter-spacing: -0.5px;
}

.form-subtitle {
  font-size: 13.5px; color: #64748b; font-weight: 400;
}

/* ── FIELD ROW — 2 columns ── */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ── FIELDS ── */
.field-group { margin-bottom: 16px; }

.field-label {
  display: block; font-size: 12.5px;
  font-weight: 600; color: #374151; margin-bottom: 6px;
}

.input-wrap { position: relative; }

.input-icon {
  position: absolute; left: 13px; top: 50%;
  transform: translateY(-50%);
  color: #94a3b8; font-size: 13px; pointer-events: none;
}

.field-input {
  width: 100%; padding: 11px 40px;
  border: 1.5px solid #e2e8f0; border-radius: 10px;
  font-size: 13.5px; font-family: 'Plus Jakarta Sans', sans-serif;
  color: #0f1f3d; background: white; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field-input::placeholder { color: #94a3b8; font-weight: 300; }

.field-input:focus {
  border-color: #1a7f8e;
  box-shadow: 0 0 0 3px rgba(26,127,142,0.1);
}

.toggle-password {
  position: absolute; right: 13px; top: 50%;
  transform: translateY(-50%);
  cursor: pointer; color: #94a3b8; font-size: 13px;
  transition: color 0.2s;
}

.toggle-password:hover { color: #1a7f8e; }

.field-error {
  color: #dc2626; font-size: 11.5px;
  margin-top: 4px; min-height: 15px;
}

/* ── BUTTONS ── */
.btn-submit {
  width: 100%; padding: 13px;
  border: none; border-radius: 10px;
  background: #071730; color: white;
  font-size: 14px; font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  margin-bottom: 18px; margin-top: 6px;
}

.btn-submit:hover {
  background: #0f2a4a; transform: translateY(-1px);
}

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

.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: #e2e8f0;
}

.divider span {
  font-size: 12px; color: #94a3b8; white-space: nowrap; font-weight: 500;
}

.btn-google {
  width: 100%; padding: 11px;
  border: 1.5px solid #e2e8f0; border-radius: 10px;
  background: white;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 13.5px; font-weight: 600; color: #374151;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-google:hover {
  border-color: #94a3b8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  color: #374151;
}

.login-text {
  text-align: center; margin-top: 20px;
  font-size: 13px; color: #64748b;
}

.login-link {
  color: #1a7f8e; font-weight: 700; text-decoration: none;
}

.login-link:hover { text-decoration: underline; }

/* ── ALERTS ── */
.server-error {
  color: #dc2626; font-size: 13px;
  margin-bottom: 12px; min-height: 16px;
}

.success-message {
  display: none;
  background: #ecfdf5; border: 1px solid #6ee7b7;
  border-radius: 8px; padding: 10px 14px;
  font-size: 13px; color: #065f46; margin-bottom: 16px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .left-panel { width: 38%; padding: 40px 28px; }
  .left-title { font-size: 26px; }
}

@media (max-width: 768px) {
  .auth-wrapper { flex-direction: column; }
  .left-panel {
    width: 100%; padding: 28px 24px; min-height: auto;
  }
  .left-title { font-size: 24px; }
  .feature-list { display: none; }
  .left-sub { margin-bottom: 0; }
  .right-panel { padding: 28px 20px; }
  .field-row { grid-template-columns: 1fr; }
}