:root {
  --blue-950: #082f56;
  --blue-900: #0b3e70;
  --blue-700: #1769aa;
  --blue-500: #4798d8;
  --gold: #f5b928;
  --ink: #14213d;
  --muted: #718096;
  --line: #dce5ef;
  --surface: #ffffff;
  --canvas: #f5f8fc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font-family: "DM Sans", system-ui, sans-serif;
}

button, input { font: inherit; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }

.login-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(520px, .95fr);
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 20%, rgba(56, 189, 248, .24), transparent 28%),
    url("assets/tc-pasaport-digital-bg.png") center / cover no-repeat fixed;
}

.login-shell::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(104deg, rgba(3, 26, 53, .93) 0%, rgba(6, 55, 103, .82) 44%, rgba(36, 137, 205, .42) 55%, rgba(237, 247, 255, .76) 72%, rgba(245, 250, 255, .92) 100%);
  backdrop-filter: blur(3px) saturate(125%);
  content: "";
}

.login-shell::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(103,190,247,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103,190,247,.16) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, #000, transparent 76%);
  pointer-events: none;
  content: "";
}

.brand-panel {
  position: relative;
  display: flex;
  overflow: hidden;
  padding: 72px clamp(48px, 7vw, 112px);
  color: #fff;
  background:
    radial-gradient(circle at 92% 18%, rgba(76, 201, 240, .24), transparent 31%),
    linear-gradient(145deg, rgba(4, 34, 68, .42), rgba(13, 104, 170, .1));
}

.brand-panel::before {
  position: absolute;
  top: 0;
  right: -150px;
  bottom: 0;
  width: 300px;
  z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(91, 192, 235, .11), rgba(235, 247, 255, .34), transparent);
  filter: blur(18px);
  content: "";
}

.brand-panel::after {
  position: absolute;
  right: -150px;
  bottom: -190px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255,255,255,.035), 0 0 0 160px rgba(255,255,255,.025);
  content: "";
}

.brand-panel__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.brand-panel__glow--one { top: -120px; right: -60px; width: 360px; height: 360px; background: rgba(73, 153, 216, .18); }
.brand-panel__glow--two { bottom: 20%; left: -100px; width: 260px; height: 260px; background: rgba(245, 185, 40, .1); }

.brand-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  max-width: 660px;
  flex-direction: column;
}

.logo-card {
  width: 230px;
  height: 116px;
  overflow: hidden;
  padding: 5px 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(0, 18, 38, .22);
}
.logo-card img, .mobile-logo img { width: 100%; height: 100%; object-fit: contain; }

.brand-copy { margin: auto 0; padding: 72px 0; }
.eyebrow {
  display: block;
  margin-bottom: 22px;
  color: #c5e3f9;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
}
.brand-copy h1 {
  max-width: 620px;
  margin: 0 0 24px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(38px, 4vw, 64px);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.brand-copy p { max-width: 540px; margin: 0; color: #d7e7f5; font-size: 18px; line-height: 1.7; }

.form-panel {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 48px clamp(30px, 7vw, 104px) 28px;
  background:
    radial-gradient(circle at 82% 17%, rgba(34, 211, 238, .16), transparent 30%),
    radial-gradient(circle at 20% 84%, rgba(59, 130, 246, .12), transparent 34%),
    rgba(244, 250, 255, .77);
  box-shadow: -50px 0 90px rgba(208, 235, 252, .34);
  backdrop-filter: blur(26px) saturate(145%);
}

.form-panel::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -110px;
  width: 180px;
  background: linear-gradient(90deg, transparent, rgba(229, 245, 255, .5), rgba(244, 250, 255, .82));
  filter: blur(14px);
  pointer-events: none;
  content: "";
}

.mobile-logo { display: none; width: 180px; height: 92px; margin-bottom: 30px; }
.login-card {
  position: relative;
  width: min(100%, 480px);
  padding: 44px 44px 42px;
  border: 1px solid rgba(159, 204, 235, .7);
  border-radius: 22px;
  background: rgba(255,255,255,.91);
  box-shadow: 0 34px 80px rgba(9, 58, 101, .18), 0 0 0 6px rgba(255,255,255,.22), inset 0 1px 0 #fff;
  backdrop-filter: blur(22px) saturate(145%);
}
.login-card::before {
  position: absolute;
  top: 0;
  right: 32px;
  left: 32px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #38bdf8, #2563eb, transparent);
  content: "";
}
.login-card h2 { margin: 0 0 10px; color: var(--blue-950); font-family: "Manrope", sans-serif; font-size: 36px; letter-spacing: -.035em; }
.subtitle { margin: 0 0 34px; color: var(--blue-950); font-size: 19px; font-weight: 700; line-height: 1.45; }

.form-field + .form-field { margin-top: 22px; }
.label-row { display: flex; min-height: 21px; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.label-row label { display: block; margin: 0; color: #263b55; font-size: 14px; font-weight: 700; line-height: 21px; }
.label-row a { font-size: 13px; font-weight: 700; }

.input-wrap { position: relative; }
.input-wrap input {
  width: 100%;
  height: 56px;
  padding: 0 76px 0 18px;
  border: 1px solid #c8d9e8;
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: #f9fcff;
  box-shadow: inset 0 1px 2px rgba(11, 62, 112, .025);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input-wrap input:hover { border-color: #9fc4df; }
.input-wrap input:focus { border-color: #2b8bd0; background: #fff; box-shadow: 0 0 0 4px rgba(56,189,248,.14), 0 8px 20px rgba(37,99,235,.06); }
.input-wrap input::placeholder { color: #9aa8b9; }
.show-password { position: absolute; top: 17px; right: 15px; border: 0; color: var(--blue-700); background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; }

.remember-row { display: inline-flex !important; align-items: center; gap: 10px; margin: 20px 0 0 !important; cursor: pointer; font-weight: 500 !important; }
.remember-row input { width: 17px; height: 17px; accent-color: var(--blue-700); }
.form-message { min-height: 20px; margin: 10px 0 4px; color: #b42318; font-size: 13px; }
.submit-button {
  display: flex;
  width: 100%;
  height: 57px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(105deg, #074a84, #087fca 58%, #16a6dd);
  box-shadow: 0 15px 32px rgba(10, 103, 170, .24), inset 0 1px 0 rgba(255,255,255,.2);
  cursor: pointer;
  font-weight: 800;
  transition: transform .2s, box-shadow .2s;
}
.submit-button:hover { transform: translateY(-1px); box-shadow: 0 17px 36px rgba(11, 62, 112, .27); }
.submit-button:active { transform: translateY(0); }

.form-panel footer { width: 100%; margin-top: auto; padding-top: 50px; color: #98a5b5; text-align: center; font-size: 11px; }
.form-panel footer { position: absolute; right: 0; bottom: 24px; left: 0; margin: 0; padding: 0; }

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .brand-panel { display: none; }
  .form-panel { padding: 36px 24px 24px; border-left: 0; background: rgba(245,250,254,.84); }
  .mobile-logo { display: block; }
  .login-card h2 { font-size: 31px; }
  .form-panel footer { padding-top: 40px; }
}

@media (max-width: 420px) {
  .form-panel { justify-content: flex-start; padding-top: 24px; }
  .mobile-logo { width: 150px; height: 76px; margin-bottom: 20px; }
  .subtitle { margin-bottom: 28px; }
  .login-heading { margin-bottom: 12px; }
  .input-wrap input { height: 53px; }
  .login-card { padding: 28px 22px; border-radius: 20px; }
}
