@font-face {
  font-family: "Oghma Inter";
  src: url("/dashboard/static/oghma-login-ui.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Oghma Cormorant";
  src: url("/dashboard/static/oghma-login-heading.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Oghma Inter", Arial, sans-serif;
  color: #f7f4e8;
  background: #0c100b;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 280px;
  background: #0c100b url("/dashboard/static/oghma-login-background.png") center center / cover fixed no-repeat;
}

.auth-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.auth-stack {
  width: min(908px, 100%);
  transform: translateY(42px);
}

.auth-brand {
  position: relative;
  overflow: hidden;
  width: min(632px, 100%);
  height: 100px;
  margin: 0 auto 49px;
}

/* Measured source brand region: x=452, y=193, width=632, height=100.
   Preserve the supplied eye/wordmark pixels; only the logo is visible. */
.auth-brand img {
  position: absolute;
  display: block;
  width: 243.037975%;
  height: 1024%;
  max-width: none;
  left: -71.518987%;
  top: -193%;
}

.auth-card {
  border: 2px solid #806e49;
  border-radius: 28px;
  background: rgba(18, 22, 14, .48);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .16);
  padding: 56px 85px 49px;
}

.auth-accent { width: 82px; height: 4px; margin-bottom: 5px; background: #a18450; }

h1 {
  margin: 0;
  font-family: "Oghma Cormorant", Georgia, serif;
  font-weight: 500;
  font-size: 70px;
  line-height: 1;
  letter-spacing: -.02em;
}

.auth-description {
  color: #969386;
  margin: 10px 0 30px;
  max-width: 731px;
  font-size: 28px;
  line-height: 34px;
  font-weight: 400;
  letter-spacing: -.02em;
}

.auth-form { display: grid; grid-template-columns: minmax(0, 1fr); }
.auth-form > label { margin-bottom: 8px; font-size: 23px; line-height: 27px; color: #bab8a7; }
.auth-phone { position: relative; }
.auth-phone > img {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  filter: invert(96%) sepia(10%) saturate(362%) hue-rotate(335deg);
  pointer-events: none;
}

.auth-form input:not([type="hidden"]) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 76px;
  border: 1.5px solid #464939;
  border-radius: 17px;
  padding: 15px 22px;
  background: rgba(10, 15, 9, .32);
  color: #f7f4e8;
  font: inherit;
  font-size: 26px;
  line-height: 1.3;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .14);
}

.auth-phone input:not([type="hidden"]) { padding-left: 81px; }
.auth-form input::placeholder { color: #949487; opacity: 1; }
.auth-form input:focus-visible { outline: 2px solid #c0cc92; outline-offset: 4px; }
.auth-form input:-webkit-autofill { -webkit-text-fill-color: #f7f4e8; box-shadow: 0 0 0 1000px #172015 inset; }

.auth-submit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  width: 100%;
  min-height: 87px;
  margin-top: 22px;
  padding: 17px 24px;
  border: 1.5px solid #526044;
  border-radius: 20px;
  background: rgba(44, 60, 37, .72);
  color: #f7f4e8;
  font: inherit;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}

.auth-submit img { filter: invert(96%) sepia(10%) saturate(362%) hue-rotate(335deg); }
.auth-submit:hover { background: #394b2e; border-color: #829268; }
.auth-submit:active { background: #26351f; }
.auth-submit:focus-visible, .auth-alternate:focus-visible { outline: 2px solid #c0cc92; outline-offset: 5px; }

.auth-alternate {
  display: table;
  margin-top: 30px;
  color: #b4b2a0;
  font-size: 23px;
  line-height: 29px;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.auth-alternate:hover { color: #f7f4e8; }
.auth-error { margin: -8px 0 22px; border: 1px solid #a7725b; border-radius: 12px; padding: 12px 16px; background: #39291f; color: #ffe1cc; font-size: 18px; line-height: 1.4; }
.auth-password-label { margin-top: 20px; }
.auth-admin .auth-description { max-width: 650px; }
.auth-admin .auth-stack { transform: none; }

@media (max-width: 760px) {
  .auth-shell { padding: 40px 22px; }
  .auth-stack { transform: none; }
  .auth-brand { width: min(470px, 88%); height: auto; aspect-ratio: 6.32; margin-bottom: 36px; }
  .auth-card { padding: 35px 31px 33px; border-radius: 24px; }
  .auth-accent { width: 60px; height: 3px; margin-bottom: 14px; }
  h1 { font-size: clamp(37px, 7.3vw, 55px); line-height: 1.08; }
  .auth-description { margin-top: 15px; margin-bottom: 28px; font-size: clamp(18px, 3.5vw, 23px); line-height: 1.4; }
  .auth-form > label { font-size: 19px; line-height: 26px; }
  .auth-form input:not([type="hidden"]) { min-height: 66px; border-radius: 14px; font-size: 21px; }
  .auth-phone input:not([type="hidden"]) { padding-left: 66px; }
  .auth-phone > img { width: 25px; height: 25px; left: 20px; }
  .auth-submit { min-height: 71px; margin-top: 19px; border-radius: 16px; font-size: 23px; gap: 23px; }
  .auth-submit img { width: 28px; height: 28px; }
  .auth-alternate { margin-top: 27px; font-size: 19px; line-height: 26px; }
}

@media (max-width: 390px) {
  .auth-shell { padding-inline: 16px; }
  .auth-card { padding-inline: 22px; }
  h1 { font-size: 35px; }
  .auth-submit { font-size: 21px; gap: 17px; }
}

@media (max-height: 850px) and (min-width: 761px) {
  .auth-stack { transform: none; }
  .auth-shell { padding-block: 35px; }
  .auth-brand { margin-bottom: 35px; }
}

@media (prefers-reduced-motion: reduce) { .auth-submit { transition: none; } }
