*, *::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: 45%;
  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: 360px;
  width: 100%;
}

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

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

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

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

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

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

.feature-icon {
  width: 40px;
  height: 40px;
  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: 15px;
  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: 12px;
  color: rgba(255,255,255,0.4);
  font-weight: 300;
}

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

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

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

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

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

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

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

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

.forgot-link {
  font-size: 12px;
  color: #1a7f8e;
  text-decoration: none;
  font-weight: 600;
}

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

.input-wrap {
  position: relative;
}

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

.field-input {
  width: 100%;
  padding: 12px 44px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  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: 14px;
  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: 12px;
  margin-top: 5px;
  min-height: 16px;
}

/* ── 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: 20px;
  margin-top: 8px;
}

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

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

.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: 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  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;
}

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

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

.signup-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;
}

.page-note {
      font-size: 12.5px;
      color: rgba(255,255,255,.25);
      animation: fadeUp .5s .35s ease both;
    }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .auth-wrapper { flex-direction: column; }
  .left-panel {
    width: 100%;
    padding: 32px 24px;
    min-height: auto;
  }
  .left-title { font-size: 26px; }
  .feature-list { display: none; }
  .left-hero { margin-bottom: 0; }
  .left-sub { margin-bottom: 0; }
  .right-panel { padding: 32px 24px; }
}