* { box-sizing: border-box; }

:root {
  --brown: #896541;
  --brown-shadow: #392315;
  --white: #fff;
  --blue: #263bd8;
}

html { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 0;
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(ellipse at 50% 22%, #927966 0%, #6c5140 47%, #32190f 100%);
}

.site {
  position: relative;
  isolation: isolate;
  width: min(100%, 624px);
  min-height: 668px;
  padding: 0 31px 22px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(75,43,27,.15), transparent 20%, rgba(255,245,226,.08) 78%, rgba(71,47,31,.14)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, rgba(88,62,43,.025) 1px 3px),
    linear-gradient(135deg, #b49a80 0%, #d0b99e 48%, #a88e74 100%);
  box-shadow: 0 0 55px rgba(0,0,0,.22);
}

.site::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .72;
  background:
    linear-gradient(176deg, transparent 0 18%, rgba(104,78,57,.17) 18.3% 19%, transparent 19.3% 37%, rgba(104,78,57,.15) 37.3% 38%, transparent 38.3% 56%, rgba(104,78,57,.13) 56.3% 57%, transparent 57.3%),
    linear-gradient(90deg, transparent 0 72%, rgba(255,241,220,.18) 72.5% 73%, transparent 73.5%);
}

.backdrop-leaves {
  position: absolute;
  z-index: -1;
  width: 310px;
  height: 700px;
  top: -48px;
  left: -145px;
  opacity: .9;
  transform: rotate(8deg);
  background:
    linear-gradient(78deg, transparent 45%, rgba(75,30,18,.95) 46% 48%, transparent 49%),
    linear-gradient(104deg, transparent 38%, rgba(119,48,27,.9) 39% 43%, transparent 44%),
    linear-gradient(118deg, transparent 31%, rgba(88,34,22,.9) 32% 37%, transparent 38%),
    linear-gradient(132deg, transparent 25%, rgba(139,64,37,.82) 26% 30%, transparent 31%);
  filter: blur(1px);
  pointer-events: none;
}

.profile { text-align: center; }

.logo {
  display: block;
  width: 204px;
  height: 192px;
  object-fit: cover;
  object-position: center;
  border-radius: 0 0 105px 105px;
  margin: 0 auto 52px;
  border: 6px solid var(--blue);
  border-top: 0;
  background: #222fc2;
  box-shadow: 0 5px 16px rgba(25,24,83,.24);
}

h1 {
  margin: 0 0 48px;
  font-size: 27px;
  line-height: 1.45;
  font-weight: 900;
  letter-spacing: -.55px;
  text-shadow: 0 2px 4px rgba(0,0,0,.28);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

h1 span { display: block; }

.buttons { display: grid; gap: 32px; }

.menu-button {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr 20px;
  align-items: center;
  min-height: 66px;
  padding: 10px 16px;
  border: 1px solid rgba(57,35,21,.85);
  border-radius: 14px;
  color: #fff;
  background: var(--brown);
  box-shadow: 0 10px 0 var(--brown-shadow);
  text-decoration: none;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.menu-button.primary {
  min-height: 72px;
  border-radius: 31px;
}

.menu-button:hover {
  background: #98734f;
  transform: translateY(-2px);
  box-shadow: 0 12px 0 var(--brown-shadow);
}

.menu-button:active {
  transform: translateY(6px);
  box-shadow: 0 4px 0 var(--brown-shadow);
}

.menu-button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
}

.logo-icon img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.login-icon {
  width: 24px; height: 24px;
  border: 2px solid #00baff;
  border-radius: 50%;
  color: #00caff;
  font-size: 18px;
  font-weight: 700;
}
.register-icon {
  width: 24px; height: 27px;
  border: 2px solid #fff;
  border-radius: 3px;
  color: #fff;
  font-size: 21px;
  line-height: 1;
}
.button-text {
  text-align: center;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -.55px;
  white-space: nowrap;
}
.button-arrow { opacity: 0; font-size: 18px; transition: opacity .16s ease; }
.menu-button:hover .button-arrow { opacity: .9; }

.footer {
  margin-top: 37px;
  text-align: center;
  color: rgba(255,255,255,.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}
.footer span { margin-left: 5px; }

@media (max-width: 480px) {
  .site { min-height: 100vh; padding: 0 20px 24px; }
  .logo { width: 178px; height: 168px; margin-bottom: 42px; }
  h1 { font-size: 22px; margin-bottom: 40px; }
  .buttons { gap: 25px; }
  .menu-button { min-height: 62px; grid-template-columns: 34px 1fr 16px; padding: 9px 12px; }
  .menu-button.primary { min-height: 66px; }
  .button-text { font-size: clamp(15px, 4.2vw, 19px); }
  .backdrop-leaves { left: -185px; }
}
