:root {
  --blue-1: #2f80ed;
  --blue-2: #3b82f6;
  --bg-blue: linear-gradient(180deg, #3b82f6 0%, #2f6fe0 100%);
  --muted: #9aa0a6;
  --input-bg: #f2f3f5;
  --form-width: 480px;
  --container-max: 1100px;
  --radius-xl: 28px;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #fff;
}

/* layout */
.page-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: #fff;
}

/* left panel (blue) */
.left-panel {
  position: relative;
  padding: 40px 48px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-blue);
  background-blend-mode: multiply;
  color: #fff;
}

.left-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.12;
  z-index: 0;
}

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

.brand img {
  height: 46px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1) saturate(1.05);
}

.welcome {
  margin-top: 80px;
}

.welcome h2 {
  margin: 0;
  font-weight: 300;
  font-size: 46px;
  opacity: 0.95;
  line-height: 1;
}

.welcome h1 {
  margin: 8px 0 0 0;
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -1px;
}

/* illustration area bottom */
.illustration {
  align-self: flex-end;
  width: 100%;
  max-height: 391px;
  position: relative;
}

.illustration img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  transform: translateY(6px);
}

/* right panel (form) */
.right-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 48px 56px;
}

.login-box {
  width: 100%;
  max-width: var(--form-width);
  text-align: center;
}

.login-box h2 {
  margin: 0 0 6px 0;
  font-size: 34px;
  color: #30343a;
  font-weight: 700;
}

.login-box p.lead {
  margin: 8px 0 28px 0;
  color: var(--muted);
  font-size: 14px;
}

form .field-label {
  display: block;
  text-align: left;
  margin-bottom: 8px;
  font-size: 14px;
  color: #4b5158;
  font-weight: 500;
}

.input {
  width: 100%;
  display: block;
  padding: 16px 22px;
  border-radius: 36px;
  border: 1px solid rgba(16, 24, 40, 0.06);
  background: var(--input-bg);
  box-sizing: border-box;
  font-size: 15px;
  outline: none;
  transition: box-shadow 0.12s, transform 0.08s;
}

.input:focus {
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.15);
  transform: translateY(-1px);
  background: #fff;
}

.form-row {
  margin-bottom: 18px;
  text-align: left;
}

.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 16px 18px;
  border-radius: 40px;
  border: 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  background-image: linear-gradient(90deg, #2f80ed, #2a66d9);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 128, 237, 0.18);
  transition: transform 0.12s, box-shadow 0.12s;
}

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

.forgot {
  display: block;
  margin-top: 14px;
  color: #3b82f6;
  text-decoration: none;
  font-size: 13px;
  text-align: center;
}

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 14px;
  text-align: left;
}

.alert-danger {
  background: #fff2f2;
  color: #9b2c2c;
  border: 1px solid rgba(155, 44, 44, 0.06);
}

.alert-success {
  background: #f2fff6;
  color: #1b8f4a;
  border: 1px solid rgba(27, 143, 74, 0.06);
}

/* captcha row */
.captcha-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.captcha-row .captcha-img {
  min-width: 140px;
  max-width: 220px;
}

.captcha-refresh {
  cursor: pointer;
  margin-left: 6px;
  color: #6b7280;
}

/* small screens */
@media (max-width: 1000px) {
  .card {
    grid-template-columns: 1fr;
    height: auto;
    align-self: start;
  }

  .left-panel {
    padding: 28px;
    height: 400px;
    border-radius: 0 0 18px 18px;
  }

  .brand {
    display: flex;
    justify-content: center;
  }

  .welcome {
    display: none;
  }

  .illustration {
    /* max-height: 200px; */
    margin: 0;
  }

  .right-panel {
    padding: 40px 28px;
    align-self: start;
  }
}
