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

:root {
  --bg: #050505;
  --bg-soft: #101010;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.16);
  --text: #f5f5f5;
  --muted: rgba(255, 255, 255, 0.68);
  --muted-strong: rgba(255, 255, 255, 0.82);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

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

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(135deg, #000 0%, #0d0d0d 50%, #151515 100%);
  font: 600 16px/1.6 "Open Sans", sans-serif;
}

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

.page-shell {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 32px;
}

.hero-panel {
  width: 100%;
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(320px, 0.85fr);
  gap: 32px;
  align-items: stretch;
}

.hero-panel--result {
  grid-template-columns: minmax(280px, 0.8fr) minmax(340px, 1.2fr);
}

.hero-copy,
.login-wrap {
  min-height: 100%;
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(32px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-copy:before {
  content: "";
  position: absolute;
  inset: auto -10% -20% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.7;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 12px;
}

.hero-title {
  margin: 0;
  font-size: clamp(38px, 7vw, 84px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted-strong);
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 400;
}

.contact-strip {
  display: grid;
  gap: 14px;
  margin-top: 40px;
  color: var(--muted);
  font-weight: 400;
}

.contact-strip a,
.secondary-link,
.footer-note a,
.contact-item a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-strip a:hover,
.secondary-link:hover,
.footer-note a:hover,
.contact-item a:hover {
  color: #d9d9d9;
  border-color: rgba(255, 255, 255, 0.75);
}

.login-wrap {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.login-wrap:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  pointer-events: none;
}

.login-html {
  width: 100%;
  min-height: 100%;
  position: relative;
  padding: clamp(28px, 4vw, 56px);
  background: rgba(0, 0, 0, 0.72);
}

.login-html--result {
  display: flex;
  flex-direction: column;
}

.brand-logo {
  width: min(220px, 48vw);
  display: block;
  margin-bottom: 32px;
}

.login-html .sign-in-htm,
.login-html .sign-up-htm {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  position: absolute;
  transform: rotateY(180deg);
  backface-visibility: hidden;
  transition: all 0.4s linear;
}

.login-html .sign-in,
.login-html .sign-up,
.login-form .group .check {
  display: none;
}

.login-html .tab,
.login-form .group .label,
.login-form .group .button {
  text-transform: uppercase;
}

.login-html .tab {
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.16em;
  margin: 0 20px 18px 0;
  padding-bottom: 10px;
  display: inline-block;
  border-bottom: 2px solid transparent;
}

.login-html .sign-in:checked + .tab,
.login-html .sign-up:checked + .tab {
  color: #fff;
  border-color: #fff;
}

.login-form {
  min-height: 360px;
  position: relative;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.login-form .group {
  margin-bottom: 18px;
}

.login-form .group .label,
.login-form .group .input,
.login-form .group .button {
  width: 100%;
  display: block;
}

.login-form .group .label {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.24em;
}

.login-form .group .input,
.login-form .group .button,
.button-link {
  border: 1px solid var(--border);
  padding: 17px 20px;
  border-radius: 999px;
}

.login-form .group .input {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
  font: inherit;
}

.login-form .group .input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.login-form .group .input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.login-form .group .button,
.button-link {
  color: #000;
  background: #fff;
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.login-form .group .button:hover,
.button-link:hover {
  transform: translateY(-1px);
  background: #e8e8e8;
}

.login-html .sign-in:checked + .tab + .sign-up + .tab + .login-form .sign-in-htm {
  transform: rotate(0);
}

.login-html .sign-up:checked + .tab + .login-form .sign-up-htm {
  transform: rotate(0);
}

.preview-frame {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.preview-image {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  display: block;
}

.action-row {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 24px;
}

.secondary-link {
  padding-bottom: 3px;
}

.contact-card {
  margin-top: 8px;
}

.contact-item {
  margin: 0 0 16px;
  color: var(--muted-strong);
  font-weight: 400;
}

.hr {
  height: 1px;
  margin: 28px 0;
  background: rgba(255, 255, 255, 0.14);
}

.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.footer-note span {
  margin-right: 6px;
}

@media (max-width: 960px) {
  .page-shell {
    padding: 18px;
  }

  .hero-panel,
  .hero-panel--result {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .login-wrap {
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(34px, 12vw, 64px);
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 0;
  }

  .hero-panel,
  .hero-panel--result {
    gap: 0;
  }

  .hero-copy,
  .login-wrap {
    border-left: none;
    border-right: none;
    box-shadow: none;
  }

  .login-html,
  .hero-copy {
    padding: 24px 20px;
  }

  .login-html .tab {
    font-size: 13px;
    margin-right: 14px;
  }

  .action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .preview-image {
    max-height: 50vh;
  }
}

@font-face {
  font-family: "Open Sans";
  src: url("../img/OpenSans-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}
