:root {
  --brand: #078bad;
  --brand-deep: #006c88;
  --brand-shadow: #005c75;
  --ink: #454545;
  --muted: #7b8799;
  --line: #dde3e9;
  --page: #f4f8f9;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  background: var(--page);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1.13fr) minmax(520px, 0.87fr);
}

.login-brand {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-ribbon {
  position: absolute;
  inset: -10% 0 -10% 8%;
  pointer-events: none;
}

.brand-ribbon::before,
.brand-ribbon::after {
  content: "";
  position: absolute;
  left: 14%;
  width: 49%;
  height: 65%;
  background: var(--brand-deep);
  clip-path: polygon(0 0, 100% 7%, 64% 31%, 100% 57%, 19% 100%, 51% 57%, 20% 31%);
}

.brand-ribbon::before {
  top: 0;
}

.brand-ribbon::after {
  left: 1%;
  bottom: 0;
  background: var(--brand-shadow);
  transform: rotate(180deg);
  opacity: 0.92;
}

.brand-copy {
  position: relative;
  z-index: 1;
  width: min(620px, 76%);
  transform: translateY(8%);
}

.brand-copy h1 {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(42px, 4.1vw, 68px);
  line-height: 1;
  letter-spacing: 0.035em;
}

.brand-copy p {
  margin: 0;
  font-size: clamp(20px, 1.55vw, 27px);
  font-weight: 600;
}

.login-panel {
  position: relative;
  min-height: 100vh;
  padding: 64px 48px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: min(500px, 100%);
  margin: auto;
  padding: 44px 43px 42px;
  border-radius: 27px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 48px rgba(55, 80, 90, 0.09);
  backdrop-filter: blur(8px);
}

.login-eyebrow {
  margin: 0 0 7px;
  color: #0874ad;
  font-size: 16px;
  font-weight: 500;
}

.login-card h1 {
  margin: 0;
  color: #454545;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.login-intro {
  max-width: 340px;
  margin: 18px 0 34px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

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

.field-label {
  margin-top: 2px;
  color: #454545;
  font-size: 15px;
  font-weight: 700;
}

.input-shell {
  min-height: 53px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
  display: flex;
  align-items: center;
  gap: 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input-shell:focus-within {
  border: 2px solid var(--brand);
  padding: 0 14px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(7, 139, 173, 0.08);
}

.input-shell svg {
  width: 21px;
  height: 21px;
  color: #9ba6b5;
  flex: 0 0 auto;
}

.input-shell:focus-within > svg {
  color: var(--brand);
}

.input-shell input {
  min-width: 0;
  height: 48px;
  padding: 0;
  border: 0;
  outline: 0;
  color: #4b4b4b;
  background: transparent;
  flex: 1;
  font-size: 16px;
}

.input-shell input::placeholder {
  color: #9ba6b5;
  opacity: 1;
}

.password-toggle {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  color: #9ba6b5;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.password-toggle svg {
  width: 21px;
  height: 21px;
}

.form-options {
  margin: 14px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.remember-option {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.remember-option input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--brand);
}

.forgot-password {
  padding: 0;
  border: 0;
  color: #006e91;
  background: transparent;
  font-weight: 700;
  cursor: default;
}

.submit-button {
  min-height: 57px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(0, 112, 142, 0.18);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.submit-button:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 112, 142, 0.24);
}

.submit-button:focus-visible,
.password-toggle:focus-visible,
.remember-option input:focus-visible {
  outline: 3px solid rgba(7, 139, 173, 0.28);
  outline-offset: 3px;
}

.submit-button svg {
  width: 19px;
  height: 19px;
}

.login-footer {
  position: absolute;
  right: 24px;
  bottom: 28px;
  left: 24px;
  color: #98a4b4;
  text-align: center;
  font-size: 12px;
}

.login-footer p {
  margin: 0 0 10px;
}

.login-footer a {
  color: #006aa1;
  font-size: 14px;
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-brand {
    min-height: 270px;
    padding: 58px 32px;
  }

  .brand-copy {
    width: min(560px, 100%);
    transform: none;
    text-align: center;
  }

  .brand-ribbon {
    inset: -120% 0 -110% 20%;
  }

  .login-panel {
    min-height: calc(100vh - 270px);
    padding: 52px 24px 26px;
  }

  .login-card {
    margin: 0 auto 48px;
  }

  .login-footer {
    position: static;
    margin-top: auto;
  }
}

@media (max-width: 560px) {
  .login-brand {
    min-height: 220px;
    padding: 48px 22px;
  }

  .brand-copy h1 {
    margin-bottom: 14px;
    font-size: clamp(34px, 11vw, 48px);
  }

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

  .login-panel {
    min-height: calc(100vh - 220px);
    padding: 32px 16px 24px;
  }

  .login-card {
    padding: 34px 22px 28px;
    border-radius: 20px;
  }

  .login-card h1 {
    font-size: 34px;
  }

  .login-intro {
    margin-bottom: 27px;
  }

  .form-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
