:root {
  --page-bg: #f4f4f5;
  --blue-900: #0b0075;
  --blue-700: #1e05c1;
  --blue-500: #3a4dea;
  --text: #18181b;
  --muted: #3f3f46;
  --border: #d4d4d8;
  --white: #fff;
  --shadow-lifted: 0 4px 8px 3px rgb(0 0 0 / 15%), 0 1px 3px rgb(0 0 0 / 30%);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login__canvas {
  position: relative;
  width: min(393px, 100%);
  min-height: 852px;
  overflow: hidden;
  background: var(--blue-900) url("../img/winsure/winsure-background.png") 36% center / cover no-repeat;
  isolation: isolate;
}

.login__background,
.login__background > * {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.light {
  top: 0;
  width: 50.2%;
  opacity: 0.35;
  background: conic-gradient(
    from 90deg at 50% 50%,
    rgb(0 0 0 / 0%) 0deg,
    rgb(0 0 0 / 0%) 0deg,
    #000 356.4deg,
    rgb(0 0 0 / 0%) 360deg
  );
  mix-blend-mode: color-dodge;
}

.light--left {
  left: 0;
}

.light--right {
  right: 0;
  transform: scaleX(-1);
}

.top-gradient {
  background: linear-gradient(180deg, rgb(2 12 81 / 75%) 0%, rgb(2 12 81 / 8%) 50%, rgb(2 12 81 / 72%) 100%);
}

.hero-logo {
  position: absolute;
  z-index: 1;
  top: 86px;
  left: 50%;
  width: 154px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--white);
  text-align: center;
}

.winsure-wordmark {
  width: 154px;
  height: 43px;
  background: url("../img/winsure/winsure-header.png") center / contain no-repeat;
  font-size: 0;
}

.winsure-wordmark span {
  display: none;
}

.hero-logo__line {
  width: 151px;
  height: 2px;
  background: var(--white);
}

.hero-logo p {
  margin: 0;
  width: 151px;
  height: 24px;
  font-family: Poppins, Roboto, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.055em;
}

.login-card {
  position: absolute;
  z-index: 2;
  top: 238px;
  left: 38px;
  width: 323px;
  min-height: 393px;
  padding: 48px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-lifted);
}

.field {
  position: relative;
  width: 100%;
  min-width: 250px;
  height: 88px;
  padding: 24px 0;
}

.field label {
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 16px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.005em;
}

.field input {
  width: 100%;
  height: 40px;
  padding: 8px;
  border: 2px solid var(--border);
  border-radius: 0;
  outline: none;
  background: var(--white);
  color: var(--text);
  font: 400 16px/24px Roboto, system-ui, sans-serif;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgb(30 5 193 / 12%);
}

.login-error {
  width: 100%;
  margin: 0;
  color: #b00020;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.actions {
  width: 100%;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
}

.button {
  height: 32px;
  border-radius: 1000px;
  padding: 4px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 2px solid transparent;
  font-family: Poppins, Roboto, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button--ghost {
  width: 132px;
  color: var(--blue-700);
  background: transparent;
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: rgb(30 5 193 / 8%);
}

.button--primary {
  width: 124px;
  color: var(--white);
  background: var(--blue-700);
  border-color: var(--blue-700);
}

.button--primary:hover,
.button--primary:focus-visible {
  filter: brightness(1.08);
}

.button svg {
  flex: 0 0 24px;
}

.app-logo {
  width: 84px;
  height: 29px;
  margin-top: 54px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  font-family: Poppins, Roboto, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #000;
}

.app-logo__mark {
  position: relative;
  width: 24px;
  height: 29px;
  margin-right: 2px;
}

.app-logo__mark::before,
.app-logo__mark::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: var(--blue-500);
}

.app-logo__mark::before {
  top: 0;
  left: 8px;
}

.app-logo__mark::after {
  bottom: 0;
  left: 8px;
}

.app-logo__mark {
  background: linear-gradient(var(--blue-500), var(--blue-500)) 0 7px / 8px 15px no-repeat;
}

.app-logo strong {
  font-weight: 700;
}

@media (max-width: 440px) {
  .login {
    padding: 0;
    place-items: stretch;
  }

  .login__canvas {
    width: 100%;
    min-height: 100svh;
  }

  .login-card {
    left: 50%;
    width: calc(100% - 70px);
    min-width: 300px;
    transform: translateX(-50%);
  }
}

@media (max-height: 740px) {
  .login__canvas {
    min-height: 740px;
  }

  .hero-logo {
    top: 48px;
  }

  .login-card {
    top: 178px;
  }
}
