:root {
  color-scheme: light;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: #231f20;
  background: #f6f5f3;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
}

h1, h2, p { margin: 0; }

.page {
  width: min(1152px, calc(100% - 96px));
  margin-inline: auto;
  padding-block: 34px 48px;
}

.page-header {
  min-height: 55px;
  margin-bottom: 18px;
  padding-inline: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: block;
  width: 174px;
  max-width: 47%;
  height: auto;
  margin-left: -15px;
  mix-blend-mode: multiply;
}

.environment {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid #e3dad8;
  border-radius: 6px;
  background: #fcfaf9;
  color: #594a48;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.environment::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a43132;
}

.entry {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  min-height: 582px;
  border: 1px solid #e8e1df;
  border-radius: 21px;
  overflow: hidden;
  background: white;
  box-shadow: 0 16px 46px -29px #3e282852;
}

.intro {
  min-width: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(38px, 5.2vw, 70px);
  color: #fffaf7;
  background: linear-gradient(147deg, #a42e31 0%, #842327 49%, #63191e 100%);
}

.drawing {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(143deg, transparent 29%, #ffccbd0b 29.2%, #ffccbd0b 40%, transparent 40.2%),
    linear-gradient(143deg, transparent 50%, #ffccbd12 50.2%, #ffccbd12 64%, transparent 64.2%);
}

.drawing::before {
  position: absolute;
  content: "";
  inset: 0;
  opacity: .6;
  background-image:
    linear-gradient(#ffe4dc20 1px, transparent 1px),
    linear-gradient(90deg, #ffe4dc20 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(145deg, black, transparent 76%);
}

.drawing-axis, .drawing-ring {
  position: absolute;
  left: 53%;
  top: 28%;
  width: 350px;
  height: 350px;
  transform: translate(-50%, -50%);
}

.drawing-axis {
  transform: translate(-50%, -50%) rotate(-34deg);
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), #fbc9bd44 50%, transparent calc(50% + .5px)),
    linear-gradient(0deg, transparent calc(50% - .5px), #fbc9bd44 50%, transparent calc(50% + .5px));
}

.drawing-ring {
  border: 1px solid #ffcebf48;
  border-radius: 50%;
  width: 318px;
  height: 318px;
}

.drawing-ring::before, .drawing-ring::after {
  content: "";
  position: absolute;
  inset: 32px;
  border: 1px solid #ffcebf44;
  border-radius: inherit;
}

.drawing-ring::after {
  inset: 65px;
  border-color: #ffcebf63;
}

.drawing-mark {
  position: absolute;
  left: 53%;
  top: 28%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%) rotate(-34deg);
  border: 1px solid #ffcebf8c;
  border-radius: 10px;
  background: #ffffff0d;
  box-shadow: 0 0 0 11px #ffcebf13;
}

.intro-copy { width: 100%; }

.app-kind {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .115em;
  text-transform: uppercase;
  color: #ffded7;
}

.intro h1 {
  max-width: 10ch;
  margin-top: 12px;
  font-size: clamp(49px, 6.15vw, 87px);
  font-weight: 720;
  line-height: .99;
  letter-spacing: -.065em;
}

.app-description {
  max-width: 32ch;
  margin-top: 20px;
  color: #f9dfd9;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.55;
}

.access {
  min-width: 0;
  padding: 46px clamp(28px, 5.3vw, 74px);
  display: grid;
  align-items: center;
  justify-items: center;
}

.access-body { width: min(100%, 366px); }

.lock {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 10px;
  border: 1px solid #f1dddb;
  background: #f9eeed;
  color: #92282a;
}

.lock span {
  position: relative;
  width: 16px;
  height: 12px;
  margin-top: 4px;
  border: 1.6px solid currentColor;
  border-radius: 3px;
}

.lock span::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 2px;
  right: 2px;
  height: 7px;
  border: 1.6px solid currentColor;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

.lock span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: calc(50% - 1px);
  width: 2px;
  height: 3px;
  border-radius: 1px;
  background: currentColor;
}

.access h2 {
  font-size: clamp(29px, 3.2vw, 39px);
  line-height: 1.12;
  font-weight: 710;
  letter-spacing: -.048em;
}

.access-description {
  margin-top: 9px;
  color: #615856;
  font-size: 15px;
  line-height: 1.5;
}

form {
  display: grid;
  margin-top: 27px;
}

label {
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
}

input:not([type="hidden"]) {
  width: 100%;
  min-width: 0;
  height: 51px;
  padding: 10px 13px;
  border: 1px solid #dcd4d2;
  border-radius: 8px;
  background: #fff;
  color: #231f20;
  font: inherit;
  transition: border-color .16s, box-shadow .16s;
}

input:not([type="hidden"]):hover { border-color: #b0a09d; }

input:not([type="hidden"]):focus {
  outline: 0;
  border-color: #a42e31;
  box-shadow: 0 0 0 3px #a42e311f;
}

input + label { margin-top: 17px; }

button {
  position: relative;
  min-height: 51px;
  margin-top: 24px;
  padding: 11px 42px;
  border: 1px solid #8d2628;
  border-radius: 8px;
  background: #952a2d;
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .16s;
}

button:hover { background: #7e2023; }

button:focus-visible {
  outline: 2px solid #952a2d;
  outline-offset: 3px;
}

button span {
  position: absolute;
  top: 50%;
  right: 17px;
  transform: translateY(-52%);
  font-size: 21px;
  font-weight: 400;
}

.form-error {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #e6bab5;
  border-radius: 7px;
  color: #791f20;
  background: #fbeeed;
  font-size: 13px;
  line-height: 1.4;
}

.form-error:empty { display: none; }

@media (max-width: 900px) {
  .page { width: calc(100% - 48px); }
  .entry { min-height: 536px; }
  .intro { padding: 36px; }
}

@media (max-width: 680px) {
  .page { width: min(460px, calc(100% - 28px)); padding-block: 12px 25px; }
  .page-header { min-height: 44px; margin-bottom: 10px; }
  .logo { width: 150px; margin-left: -13px; }
  .entry { min-height: 0; grid-template-columns: minmax(0, 1fr); border-radius: 15px; }
  .intro { min-height: 178px; align-items: center; padding: 23px 23px 24px; }
  .intro h1 { max-width: none; font-size: clamp(34px, 8vw, 50px); margin-top: 8px; }
  .app-kind { font-size: 10px; }
  .app-description { max-width: 31ch; margin-top: 9px; font-size: 14px; }
  .drawing-ring { width: 210px; height: 210px; left: 87%; top: 33%; opacity: .58; }
  .drawing-ring::before { inset: 20px; }
  .drawing-ring::after { inset: 41px; }
  .drawing-axis { width: 250px; height: 250px; left: 87%; top: 33%; opacity: .55; }
  .drawing-mark { display: none; }
  .access { padding: 25px 23px 29px; }
  .access-body { width: 100%; }
  .lock { display: none; }
  .access h2 { font-size: 29px; }
  .access-description { margin-top: 6px; font-size: 14px; }
  form { margin-top: 19px; }
  button { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  input, button { transition: none; }
}
