:root {
  --bg: #111111;
  --bg-soft: #1c1c1c;
  --panel: #fffdf7;
  --panel-strong: #ffffff;
  --ink: #111111;
  --muted: #62605b;
  --line: #ded5c2;
  --red: #d71920;
  --red-dark: #a91016;
  --yellow: #ffd30f;
  --yellow-soft: #fff1a8;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(215, 25, 32, 0.32) 0%, rgba(215, 25, 32, 0.06) 28%, transparent 54%),
    linear-gradient(295deg, rgba(255, 211, 15, 0.32) 0%, rgba(255, 211, 15, 0.08) 26%, transparent 50%),
    linear-gradient(180deg, #242020 0%, #101010 54%, #0b0b0b 100%);
  font-family: "Segoe UI", Tahoma, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

a {
  color: inherit;
}

.auth-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
  align-items: center;
  gap: 34px;
}

.brand-panel {
  min-height: 580px;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 34px;
  color: #fff;
}

.brand-mark {
  width: min(100%, 520px);
  padding: 26px 30px;
  border: 1px solid rgba(255, 211, 15, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 190px;
  object-fit: contain;
}

.brand-copy {
  max-width: 610px;
}

.eyebrow {
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 900;
  color: var(--yellow);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 600px;
  font-size: 52px;
  line-height: 1.02;
  color: #fff;
}

h2 {
  font-size: 34px;
  line-height: 1.08;
}

.brand-copy p {
  margin-top: 16px;
  max-width: 510px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.5;
}

.contact-panel {
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-panel a:nth-child(3) {
  grid-column: 1 / -1;
}

.contact-panel a,
.mobile-contact a {
  min-height: 72px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}

.contact-panel a:hover,
.mobile-contact a:hover {
  border-color: rgba(255, 211, 15, 0.72);
  background: rgba(255, 211, 15, 0.12);
}

.contact-panel span {
  display: block;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-panel strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.auth-card {
  position: relative;
  width: 100%;
  padding: 36px;
  border: 1px solid rgba(255, 211, 15, 0.46);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(90deg, var(--red), var(--yellow));
}

.card-logo {
  display: none;
  width: min(100%, 300px);
  height: auto;
  max-height: 110px;
  margin: 0 auto 22px;
  object-fit: contain;
}

.auth-title {
  padding-left: 16px;
  border-left: 5px solid var(--red);
}

.auth-title .eyebrow {
  color: var(--red);
}

.auth-intro {
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 13px;
  font-weight: 900;
  color: #39342d;
}

input {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid #c9b995;
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(17, 17, 17, 0.03);
}

input:focus {
  outline: 3px solid rgba(255, 211, 15, 0.38);
  border-color: var(--red);
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  width: fit-content;
  padding: 12px 22px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(215, 25, 32, 0.26);
}

button:hover {
  background: var(--red-dark);
}

.msg {
  min-height: 20px;
  margin-top: 14px;
  color: var(--red-dark);
  font-size: 14px;
  font-weight: 800;
}

.mobile-contact {
  display: none;
  margin-top: 22px;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.mobile-contact a {
  min-height: 46px;
  align-items: center;
  justify-content: center;
  display: flex;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 940px) {
  .auth-shell {
    width: min(calc(100% - 28px), 540px);
    min-height: 100vh;
    padding: 18px 0;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .brand-panel {
    min-height: auto;
    padding: 0 0 14px;
    gap: 0;
  }

  .brand-mark,
  .brand-copy,
  .contact-panel {
    display: none;
  }

  .auth-card {
    padding: 28px;
  }

  .card-logo {
    display: block;
  }

  h2 {
    font-size: 30px;
  }

  button {
    width: 100%;
  }

  .mobile-contact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  body {
    background:
      linear-gradient(145deg, rgba(215, 25, 32, 0.22), transparent 42%),
      linear-gradient(315deg, rgba(255, 211, 15, 0.24), transparent 36%),
      #101010;
  }

  .auth-shell {
    width: min(calc(100% - 20px), 360px);
    padding: 10px 0;
  }

  .auth-card {
    padding: 22px;
    border-radius: 8px;
  }

  .auth-card::before {
    border-radius: 8px 8px 0 0;
  }

  .card-logo {
    max-width: 240px;
    max-height: 86px;
    margin-bottom: 18px;
  }

  .auth-title {
    padding-left: 12px;
    border-left-width: 4px;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  h2 {
    font-size: 26px;
  }

  .auth-intro {
    margin: 16px 0 20px;
    font-size: 14px;
  }

  input,
  button {
    min-height: 48px;
  }

  .mobile-contact {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 720px) and (min-width: 941px) {
  .auth-shell {
    padding: 24px 0;
  }

  .brand-panel {
    min-height: 520px;
  }

  .auth-logo {
    max-height: 130px;
  }

  h1 {
    font-size: 44px;
  }
}
