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

html, body {
  height: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  background: #F8F9FB;
  color: #1A1A2E;
  -webkit-font-smoothing: antialiased;
}

/* ─── Page layout ───────────────────────────────── */
.login-page {
  display: flex;
  min-height: 100vh;
}

/* ─── Left panel ────────────────────────────────── */
.login-left {
  width: 42%;
  flex: 0 0 42%;
  background: #1A3A5C;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.math-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ─── Logo ──────────────────────────────────────── */
.logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.logo-shield {
  width: 44px;
  height: 44px;
  background: #2C5F8A;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.logo-shield i {
  color: #fff;
  font-size: 20px;
}

.logo-text {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
}

/* ─── Mid section ───────────────────────────────── */
.mid-section {
  position: relative;
  z-index: 1;
}

.divider-accent {
  width: 36px;
  height: 3px;
  background: #F5A623;
  margin-bottom: 20px;
  border-radius: 2px;
}

.headline {
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 28px;
}

.headline-accent {
  color: #F5A623;
}

/* ─── Features ──────────────────────────────────── */
.features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
}

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

.feat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.feat-icon i {
  font-size: 20px;
  color: #fff;
}

.feat-navy  { background: rgba(44,95,138,0.55); }
.feat-green { background: rgba(39,80,10,0.6); }
.feat-amber { background: rgba(123,79,18,0.6); }

.feat-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.feat-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

/* ─── Bottom section ────────────────────────────── */
.bottom-section {
  position: relative;
  z-index: 1;
}

.curriculum-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  opacity: 0.5;
}

.tag {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tag i {
  font-size: 11px;
  opacity: 0.7;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-row i {
  color: rgba(255, 255, 255, 0.4);
  font-size: 15px;
}

.trust-row span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* ─── Right brand (logo row in the form panel) ──── */
.right-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.right-brand .logo-text {
  font-size: 13px;
  font-weight: 600;
  color: #1A1A2E;
  line-height: 1.3;
  white-space: nowrap;
}

/* ─── Right panel ───────────────────────────────── */
.login-right {
  flex: 1 1 0%;
  background: #fff;
  padding: 0 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: none;
}

.login-right-inner {
  width: 100%;
  max-width: 440px;
}

.welcome-title {
  font-size: 26px;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 6px;
  line-height: 1.2;
}

.welcome-sub {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
  margin-bottom: 24px;
}

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

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

.field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 12px;
  color: #9CA3AF;
  font-size: 16px;
  pointer-events: none;
}

.field-input {
  width: 100%;
  border: 1.5px solid #D1D5DB;
  border-radius: 8px;
  padding: 10px 14px 10px 38px;
  font-size: 14px;
  color: #1A1A2E;
  background: #fff;
  outline: none;
  font-family: 'Inter', system-ui, sans-serif;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field-input::placeholder {
  color: #9CA3AF;
}

.field-input:focus {
  border-color: #2C5F8A;
  box-shadow: 0 0 0 3px rgba(44, 95, 138, 0.12);
}

.field-input-password {
  padding-right: 40px;
}

.field-eye-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #9CA3AF;
  font-size: 16px;
  padding: 0;
  display: flex;
  align-items: center;
}

.field-eye-btn:hover {
  color: #6B7280;
}

.field-error {
  display: block;
  font-size: 12px;
  color: #E24B4A;
  margin-top: 5px;
}

.validation-summary {
  background: #FCEBEB;
  border: 0.5px solid #F09595;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #791F1F;
  margin-bottom: 20px;
}

/* ─── Sign in button ────────────────────────────── */
.btn-signin {
  width: 100%;
  background: #1A3A5C;
  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;
  font-family: 'Inter', system-ui, sans-serif;
  transition: background 0.15s;
  margin-top: 20px;
  margin-bottom: 0;
  letter-spacing: 0.01em;
}

.btn-signin:hover {
  background: #2C5F8A;
}

.btn-signin i {
  font-size: 16px;
}

/* ─── Help row ──────────────────────────────────── */
.help-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #F0F6FC;
  border-radius: 10px;
  border: 1px solid #C8DDEF;
  font-size: 13px;
  color: #374151;
  margin-top: 16px;
  line-height: 1.5;
}

.help-row i {
  color: #2C5F8A;
  font-size: 16px;
  margin-top: 1px;
  flex-shrink: 0;
}

.help-icon {
  display: none;
}

.help-text {
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
}

.help-link {
  color: #2C5F8A;
  text-decoration: none;
  font-weight: 500;
}

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

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 899px) {
  .login-left {
    display: none;
  }

  .login-right {
    width: 100%;
    min-height: 100vh;
    max-width: none;
    padding: 40px 20px;
    justify-content: center;
    align-items: center;
  }

  .login-right-inner {
    width: 100%;
    max-width: 420px;
  }

  .welcome-title {
    font-size: 22px;
  }
}
