:root {
  --bg: #edf2f7;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --border: #d9e2ec;
  --primary: #0f4c81;
  --primary-2: #2563eb;
  --primary-3: #1d4ed8;
  --danger: #b91c1c;
  --success: #15803d;
  --shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #f2f4f8 0%, #ebf0f6 100%);
  color: var(--text);
  min-height: 100%;
}

body {
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

.login-shell {
  min-height: 100vh;
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 26px;
  align-items: center;
}

/* LEFT */
.brand-panel {
  min-height: 760px;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.14) 0, rgba(255,255,255,0.14) 16%, transparent 16.2%),
    linear-gradient(180deg, #0a1f52 0%, #12388a 52%, #1f5ff0 100%);
  box-shadow: var(--shadow-md);
  position: relative;
}

.brand-panel::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  right: -140px;
  top: -120px;
  background: rgba(255, 255, 255, 0.08);
}

.brand-panel-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 42px 38px 34px;
  display: flex;
  flex-direction: column;
}

.brand-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.brand-name {
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand-copy {
  margin-top: 54px;
  max-width: 640px;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.brand-copy h1 {
  margin: 0 0 18px;
  font-size: 48px;
  line-height: 1.02;
  color: #ffffff;
  font-weight: 800;
}

.brand-copy p {
  margin: 0;
  font-size: 21px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 720px;
}

.brand-points {
  margin-top: 42px;
  display: grid;
  gap: 18px;
}

.brand-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.55;
}

.point-check {
  font-weight: 800;
  color: #ffffff;
  margin-top: 1px;
}

.brand-footer {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  font-weight: 600;
}

/* RIGHT */
.login-panel {
  display: flex;
  justify-content: center;
}

.login-card {
  width: 100%;
  max-width: 560px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e3e8ef;
  border-radius: 28px;
  box-shadow: var(--shadow-md);
  padding: 34px 32px 28px;
}

.login-card-top {
  margin-bottom: 22px;
}

.login-kicker {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

.login-card-top h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 800;
  color: var(--text);
}

.login-card-top p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.message {
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid transparent;
}

.message.error {
  background: #fef2f2;
  color: var(--danger);
  border-color: #fecaca;
}

.message.success {
  background: #f0fdf4;
  color: var(--success);
  border-color: #bbf7d0;
}

.message.info {
  background: #eff6ff;
  color: var(--primary-3);
  border-color: #bfdbfe;
}

.login-form {
  display: grid;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.form-field input {
  width: 100%;
  height: 56px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 0 16px;
  font-size: 16px;
  color: var(--text);
  transition: 0.18s ease;
}

.form-field input:focus {
  outline: none;
  border-color: var(--primary-2);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-row-between {
  justify-content: space-between;
}

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

.remember-row input {
  width: 17px;
  height: 17px;
  margin: 0;
}

.btn {
  height: 54px;
  border: 0;
  border-radius: 16px;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.link-btn {
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 18px;
  color: var(--muted-2);
  font-size: 13px;
  text-transform: lowercase;
}

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

.login-note {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* responsive */
@media (max-width: 1120px) {
  .login-shell {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .brand-panel {
    min-height: 500px;
  }

  .brand-copy {
    margin-top: 34px;
  }

  .brand-copy h1 {
    font-size: 40px;
  }

  .brand-copy p {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .login-card {
    padding: 24px 18px 22px;
    border-radius: 22px;
  }

  .brand-panel-inner {
    padding: 28px 20px 24px;
  }

  .brand-copy h1 {
    font-size: 32px;
  }

  .brand-copy p {
    font-size: 16px;
  }

  .brand-point {
    font-size: 15px;
  }

  .form-row-between {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-right {
    width: 100%;
  }
}