:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --wine: #b51640;
  --ink: #202029;
  --muted: #a6a4ae;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #201a20;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.login-page {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 48px clamp(26px, 7.2vw, 112px) 27px;
  isolation: isolate;
  color: #fff;
  background-color: #34252b;
  background-image: url("assets/city-sunset.png?v=20261028-2");
  background-position: center 53%;
  background-size: cover;
}

.page-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(22 18 25 / 55%) 0%, rgb(22 18 25 / 32%) 42%, rgb(22 18 25 / 26%) 100%),
    linear-gradient(0deg, rgb(14 13 20 / 56%) 0%, transparent 48%, rgb(25 17 20 / 12%) 100%);
}

.language-toggle {
  position: absolute;
  z-index: 2;
  top: clamp(20px, calc((100svh - 518px) / 4 - 16px), 128px);
  right: max(clamp(26px, 7.2vw, 112px), calc(50vw - 616px));
  display: inline-flex;
  min-width: 68px;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 2px solid rgb(255 255 255 / 55%);
  border-radius: 999px;
  background: rgb(255 255 255 / 8%);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgb(255 255 255 / 62%);
  outline: none;
  background: rgb(255 255 255 / 17%);
}

.language-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.layout {
  display: grid;
  width: min(100%, 1232px);
  min-height: 540px;
  grid-template-columns: minmax(0, 1fr) minmax(370px, 430px);
  align-items: center;
  gap: clamp(60px, 10vw, 150px);
  margin: auto;
}

.welcome {
  display: flex;
  min-height: 480px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 0 14px;
}

.brand {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  border-radius: 4px;
  outline-offset: 8px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(245px, 25vw, 335px);
  height: auto;
  filter: none;
}

.welcome-copy {
  max-width: 630px;
  margin-top: clamp(58px, 9vh, 100px);
}

.eyebrow,
.panel-kicker {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.eyebrow {
  color: rgb(255 255 255 / 81%);
}

.welcome h1 {
  margin: 15px 0 12px;
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(40px, 4.8vw, 60px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.06;
  color: #c1a5a6;
  text-shadow: 0 3px 28px rgb(0 0 0 / 18%);
}

.welcome-description {
  max-width: 560px;
  margin: 0;
  color: rgb(255 255 255 / 83%);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  text-wrap: balance;
  text-shadow: 0 2px 15px rgb(0 0 0 / 24%);
}

.login-panel {
  width: 100%;
  padding: 38px 38px 26px;
  border: 2px solid rgb(255 255 255 / 48%);
  border-radius: 22px;
  background: linear-gradient(145deg, rgb(45 44 55 / 40%), rgb(39 32 42 / 32%));
  box-shadow: 0 22px 70px rgb(10 11 18 / 30%), inset 0 1px 0 rgb(255 255 255 / 16%);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  backdrop-filter: blur(22px) saturate(125%);
}

.panel-heading {
  margin-bottom: 27px;
}

.panel-kicker {
  display: inline-block;
  margin-bottom: 11px;
  color: #f4c0cc;
  font-size: 9px;
}

.panel-heading h2 {
  margin: 0;
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.3;
}

.panel-heading p {
  margin: 8px 0 0;
  color: rgb(255 255 255 / 70%);
  font-size: 13px;
  line-height: 1.5;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.field > label {
  color: rgb(255 255 255 / 91%);
  font-size: 12px;
  font-weight: 600;
}

.input-wrap {
  position: relative;
  display: flex;
  min-height: 48px;
  align-items: center;
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 44px 0 43px;
  border: 2px solid rgb(255 255 255 / 42%);
  border-radius: 10px;
  outline: none;
  background: rgb(255 255 255 / 10%);
  color: #fff;
  font-size: 13px;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.input-wrap input::placeholder {
  color: rgb(255 255 255 / 53%);
}

.input-wrap input:focus {
  border-color: rgb(255 255 255 / 72%);
  background: rgb(255 255 255 / 14%);
  box-shadow: 0 0 0 3px rgb(255 255 255 / 10%);
}

.field-icon {
  position: absolute;
  z-index: 1;
  left: 14px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: rgb(255 255 255 / 66%);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
  pointer-events: none;
}

.password-toggle {
  position: absolute;
  right: 8px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgb(255 255 255 / 72%);
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: rgb(255 255 255 / 11%);
  color: #fff;
  outline: none;
}

.eye-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.eye-slash {
  opacity: 0;
  transition: opacity 120ms ease;
}

.password-toggle[aria-pressed="true"] .eye-slash {
  opacity: 1;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: -1px;
}

.remember-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgb(255 255 255 / 78%);
  cursor: pointer;
  font-size: 11px;
  user-select: none;
}

.remember-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.custom-checkbox {
  display: grid;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  place-items: center;
  border: 2px solid rgb(255 255 255 / 80%);
  border-radius: 4px;
  background: rgb(255 255 255 / 7%);
  transition: background-color 150ms ease, border-color 150ms ease;
}

.custom-checkbox svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  opacity: 0;
}

.remember-option input:checked + .custom-checkbox {
  border-color: #f3d7de;
  background: var(--wine);
}

.remember-option input:checked + .custom-checkbox svg {
  opacity: 1;
}

.remember-option input:focus-visible + .custom-checkbox {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.text-link {
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-decoration-color: rgb(255 255 255 / 50%);
  text-underline-offset: 3px;
  transition: color 150ms ease;
}

.text-link:hover {
  color: #ffdfe7;
}

.submit-button {
  display: flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 16px rgb(17 13 18 / 16%);
  color: #29232a;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  background: #fff8fa;
  box-shadow: 0 8px 22px rgb(17 13 18 / 23%);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:focus-visible {
  outline: 3px solid rgb(255 255 255 / 55%);
  outline-offset: 3px;
}

.submit-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--wine);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.panel-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 17px;
}

.panel-divider::before,
.panel-divider::after {
  height: 2px;
  flex: 1;
  background: rgb(255 255 255 / 28%);
  content: "";
}

.panel-divider span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgb(255 255 255 / 62%);
}

.register-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: rgb(255 255 255 / 77%);
  font-size: 11px;
}

.register-button {
  min-height: 31px;
  padding: 0 12px;
  border: 2px solid rgb(255 255 255 / 55%);
  border-radius: 8px;
  background: rgb(255 255 255 / 8%);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.register-button:hover,
.register-button:focus-visible {
  border-color: rgb(255 255 255 / 65%);
  outline: none;
  background: rgb(255 255 255 / 16%);
}

.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: rgb(255 255 255 / 72%);
  font-size: 11px;
}

.register-line + .security-note {
  margin-top: 14px;
}

.security-note svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #f4c0cc;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.page-footer {
  display: flex;
  width: min(100%, 1232px);
  align-items: center;
  justify-content: space-between;
  margin: 27px auto 0;
  color: rgb(255 255 255 / 66%);
  font-size: 13px;
}

.footer-copy {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-separator {
  color: rgb(255 255 255 / 46%);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 9px;
}

.social-links a {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 2px solid rgb(255 255 255 / 55%);
  border-radius: 50%;
  background: rgb(255 255 255 / 8%);
  color: #fff;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: translateY(-2px);
  outline: none;
  background: rgb(255 255 255 / 18%);
  color: #fff;
}

.social-links svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.social-links a:last-child svg {
  fill: currentColor;
  stroke: none;
}

.social-links .social-dot {
  fill: currentColor;
  stroke: none;
}

@media (min-width: 1440px) {
  .login-page {
    padding-right: max(26px, 7.2vw);
    padding-left: max(26px, 7.2vw);
  }

  .language-toggle {
    right: max(26px, 7.2vw, calc(50vw - 750px));
  }

  .layout,
  .page-footer {
    width: min(100%, 86vw, 1500px);
  }

  .layout {
    grid-template-columns: minmax(0, 1fr) minmax(370px, clamp(430px, 28vw, 520px));
    gap: clamp(60px, 9vw, 170px);
  }
}

@media (max-width: 980px) {
  .login-page {
    padding-right: clamp(28px, 5vw, 60px);
    padding-left: clamp(28px, 5vw, 60px);
  }

  .language-toggle {
    right: max(clamp(28px, 5vw, 60px), calc(50vw - 616px));
  }

  .layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
    gap: clamp(32px, 5vw, 60px);
  }

  .login-panel {
    padding: 34px 30px 24px;
  }

  .welcome h1 {
    font-size: clamp(38px, 4.5vw, 50px);
  }
}

@media (max-width: 900px) {
  .login-page {
    padding-right: clamp(22px, 5vw, 46px);
    padding-left: clamp(22px, 5vw, 46px);
  }

  .language-toggle {
    right: max(clamp(22px, 5vw, 46px), calc(50vw - 300px));
  }

  .layout {
    width: min(100%, 600px);
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .welcome {
    min-height: 0;
    padding: 0;
  }

  .brand-logo {
    width: clamp(220px, 34vw, 290px);
  }

  .welcome-copy {
    margin-top: 26px;
  }

  .welcome h1 {
    font-size: clamp(38px, 5.8vw, 50px);
  }

  .login-panel {
    padding: 32px clamp(24px, 5vw, 38px) 24px;
  }

  .page-footer {
    width: min(100%, 600px);
  }
}

@media (max-width: 760px) {
  .login-page {
    min-height: 100svh;
    justify-content: flex-start;
    padding: 38px 22px 20px;
  }

  .language-toggle {
    top: 20px;
    right: max(22px, calc(50vw - 235px));
  }

  .login-page {
    background-position: 58% center;
  }

  .page-shade {
    background:
      linear-gradient(90deg, rgb(22 18 25 / 52%) 0%, rgb(22 18 25 / 26%) 100%),
      linear-gradient(0deg, rgb(14 13 20 / 69%) 0%, rgb(14 13 20 / 28%) 68%, rgb(25 17 20 / 13%) 100%);
  }

  .layout {
    width: min(100%, 470px);
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 27px;
    margin: auto;
  }

  .welcome {
    min-height: 0;
    padding: 0;
  }

  .brand-logo {
    width: clamp(205px, 56vw, 265px);
  }

  .welcome-copy {
    margin-top: 24px;
  }

  .eyebrow {
    font-size: 9px;
  }

  .welcome h1 {
    margin: 9px 0 7px;
    font-size: clamp(30px, 8vw, 38px);
    line-height: 1.07;
  }

  .welcome-description {
    font-size: 13px;
  }

  .login-panel {
    padding: 27px 24px 21px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgb(40 40 50 / 50%), rgb(36 29 40 / 42%));
    -webkit-backdrop-filter: blur(16px) saturate(125%);
    backdrop-filter: blur(16px) saturate(125%);
  }

  .panel-heading {
    margin-bottom: 22px;
  }

  .panel-heading h2 {
    font-size: 23px;
  }

  .page-footer {
    width: min(100%, 470px);
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 19px;
    font-size: 12px;
  }

  .footer-copy {
    flex: 1 1 240px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 9px;
  }

  .social-links {
    flex: 0 0 auto;
    margin-left: auto;
  }
}

@media (max-width: 380px) {
  .login-page {
    padding-right: 16px;
    padding-left: 16px;
  }

  .login-panel {
    padding-right: 20px;
    padding-left: 20px;
  }

  .language-toggle {
    right: max(16px, calc(50vw - 235px));
  }

  .form-options {
    gap: 8px;
  }

  .register-line {
    flex-wrap: wrap;
  }

  .remember-option,
  .text-link {
    font-size: 10px;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .login-page {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .layout {
    min-height: 0;
  }

  .welcome {
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .brand-logo {
    width: clamp(225px, 21vw, 290px);
  }

  .welcome-copy {
    margin-top: clamp(26px, 4vh, 38px);
  }

  .welcome h1 {
    margin: 10px 0 8px;
    font-size: clamp(38px, 4.3vw, 54px);
  }

  .welcome-description {
    font-size: 14px;
  }

  .login-panel {
    padding: 24px 30px 18px;
  }

  .panel-heading {
    margin-bottom: 18px;
  }

  .login-form {
    gap: 13px;
  }

  .input-wrap,
  .input-wrap input {
    min-height: 44px;
    height: 44px;
  }

  .panel-divider {
    margin: 13px 0 11px;
  }

  .register-line + .security-note {
    margin-top: 10px;
  }

  .page-footer {
    margin-top: 12px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
