:root {
  --ink: #172033;
  --muted: #647083;
  --line: #dce3ec;
  --paper: #f7f9fc;
  --white: #ffffff;
  --green: #13795b;
  --green-dark: #0f5f49;
  --gold: #f2b84b;
  --blue: #2457a7;
  --shadow: 0 24px 70px rgba(23, 32, 51, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(2, 44, 63, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(2, 34, 49, 0.1), transparent 40%),
    var(--paper);
}

.login-shell {
    margin-top:50px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, 1.05fr) minmax(360px, 0.95fr);
  padding: clamp(18px, 3vw, 42px);
}

.brand-panel,
.form-panel {
  min-height: calc(100vh - clamp(36px, 6vw, 84px));
}

.brand-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(28px, 5vw, 64px);
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(5, 27, 45, 0.1), rgba(4, 34, 58, 0.9)),
    #031f3c;
  border-radius: 18px 0 0 18px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.brand-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(3, 46, 60, 0.88), rgba(2, 39, 66, 0.7)),
    url("./") center / cover no-repeat;
}

.brand-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(4, 18, 23, 0.84));
}

.brand-content {
  width: min(560px, 100%);
}

.brand-mark {
  display: grid;
  width: 66px;
  height: 66px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 16px;
  color: #0f3f34;
  background: rgba(255, 255, 255, 0.92);
  font-weight: 850;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 0.93;
  letter-spacing: 0;
}

.brand-copy {
  max-width: 540px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.7;
}

.brand-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-stats span {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  font-weight: 700;
}

.form-panel {
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 70px);
  border-radius: 0 18px 18px 0;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.form-card {
  width: min(430px, 100%);
}

.form-heading {
  margin-bottom: 34px;
}

.form-heading .eyebrow {
  color: var(--green);
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.form-heading p:not(.eyebrow),
.support-note {
  color: var(--muted);
  line-height: 1.6;
}

form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: #313b4f;
  font-size: 0.92rem;
  font-weight: 750;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input::placeholder {
  color: #98a2b3;
  font-weight: 500;
}

input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(19, 121, 91, 0.13);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 2px 0 6px;
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.check input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}

a {
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: #00162c;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(19, 121, 91, 0.24);
}

button:hover {
  filter: brightness(1.04);
}

.support-note {
  margin: 24px 0 0;
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  body {
    background: var(--paper);
  }

  .login-shell {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .brand-panel,
  .form-panel {
    min-height: auto;
    border-radius: 0;
    box-shadow: none;
  }

  .brand-panel {
    min-height: 42vh;
    padding: 34px 24px;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    border-radius: 12px;
  }

  h1 {
    max-width: 12ch;
  }

  .brand-copy {
    margin-bottom: 22px;
  }

  .form-panel {
    display: block;
    padding: 34px 24px 42px;
  }

  .form-card {
    margin-inline: auto;
  }
}
@media (max-width: 560px) {
   .brand-panel{
      display:none;
  }
   .form-panel{
      margin-top:40px;
  }
}

@media (max-width: 430px) {
  .form-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-stats span {
    font-size: 0.74rem;
  }

}
