:root {
  --black: #090909;
  --white: #f2f2ef;
  --muted: #777772;
  --line: #d2d2cd;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: #151515;
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

main {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(520px, 1.15fr);
}

.login-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: white;
  background: url("assets/hero.jpg") 58% center / cover no-repeat;
}

.visual-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.08) 70%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent);
}

.visual-copy {
  position: absolute;
  z-index: 1;
  left: clamp(28px, 5vw, 70px);
  bottom: clamp(34px, 7vh, 80px);
}

.visual-copy span,
.eyebrow,
label > span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.visual-copy p {
  margin: 15px 0 0;
  font-size: clamp(27px, 3.2vw, 47px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.login-panel {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-content: center;
  padding: 110px clamp(35px, 8vw, 135px);
}

.login-brand {
  position: absolute;
  top: 34px;
  left: clamp(35px, 8vw, 135px);
  width: 154px;
  height: 28px;
  display: block;
  padding: 0;
  background: transparent;
}

.login-brand img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.login-box {
  width: min(490px, 100%);
}

.eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 24px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

h1 {
  margin: 0;
  font-size: clamp(52px, 7vw, 86px);
  line-height: 0.88;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.login-intro {
  max-width: 400px;
  margin: 30px 0 38px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

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

label {
  display: grid;
  gap: 11px;
}

label > span {
  color: #555;
}

input {
  width: 100%;
  min-height: 51px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid #aaa9a4;
  border-radius: 0;
  outline: 0;
  color: #111;
  background: transparent;
  font-size: 16px;
}

input:focus {
  border-color: #111;
}

.login-error {
  min-height: 15px;
  margin: -8px 0 0;
  color: #a12727;
  font-size: 10px;
}

form button {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 22px;
  border: 0;
  color: white;
  background: var(--black);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
}

form button b {
  font-size: 21px;
}

.preview-note {
  margin: 16px 0 0;
  color: #92928c;
  font-size: 9px;
  line-height: 1.5;
}

.back-site {
  position: absolute;
  left: clamp(35px, 8vw, 135px);
  bottom: 32px;
  color: #777;
  font-size: 10px;
}

@media (max-width: 760px) {
  main {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 230px;
    background-position: 58% 38%;
  }

  .visual-copy {
    left: 22px;
    bottom: 22px;
  }

  .visual-copy p {
    font-size: 25px;
  }

  .login-panel {
    min-height: calc(100vh - 230px);
    align-content: start;
    padding: 84px 22px 75px;
  }

  .login-brand {
    top: 26px;
    left: 22px;
    width: 142px;
  }

  h1 {
    font-size: 54px;
  }

  .login-intro {
    margin: 24px 0 32px;
  }

  .back-site {
    position: static;
    margin-top: 40px;
  }
}
