@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;800;900&display=swap");

* {
  box-sizing: border-box;
}

html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.auth-page {
  --auth-motion: 0deg;
  --auth-shift: 0px;
  --auth-bg: #111413;
  --auth-panel: rgba(29, 36, 34, 0.88);
  --auth-panel-strong: rgba(37, 45, 42, 0.94);
  --auth-line: rgba(213, 183, 123, 0.2);
  --auth-text: #f0eee8;
  --auth-muted: #b9b2a5;
  --auth-gold: #d7b36c;
  --auth-copper: #b8754d;
  --auth-teal: #14b8a6;
  background: #111413;
  color: var(--auth-text);
  font-family: Roboto, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body.auth-page,
button,
input {
  letter-spacing: 0;
}

.auth-screen {
  align-items: center;
  display: grid;
  justify-items: center;
  min-height: 100vh;
  padding: 38px 20px 34px;
  position: relative;
  z-index: 1;
}

.auth-bg {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
}

.auth-bg::before {
  background:
    linear-gradient(135deg, rgba(215, 179, 108, 0.14), transparent 32%),
    linear-gradient(225deg, rgba(20, 184, 166, 0.08), transparent 34%),
    linear-gradient(135deg, #0d100f, #191f1d 52%, #111413);
  content: "";
  inset: -12%;
  position: absolute;
}

.auth-bg__beam {
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.42;
  position: absolute;
  transform: rotate(var(--auth-motion)) translateX(var(--auth-shift));
  transition: transform 180ms ease-out;
}

.auth-bg__beam--one {
  background: linear-gradient(90deg, transparent, rgba(215, 179, 108, 0.4), transparent);
  height: 190px;
  left: -14%;
  top: 18%;
  width: 92%;
}

.auth-bg__beam--two {
  background: linear-gradient(90deg, transparent, rgba(184, 117, 77, 0.25), transparent);
  bottom: 9%;
  height: 210px;
  right: -18%;
  width: 84%;
}

.auth-bg__grid {
  background:
    linear-gradient(rgba(213, 183, 123, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(213, 183, 123, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  inset: 0;
  mask-image: radial-gradient(circle at center, black, transparent 74%);
  opacity: 0.32;
  position: absolute;
}

.auth-logo {
  align-items: center;
  color: var(--auth-text);
  display: inline-grid;
  gap: 8px;
  justify-items: center;
  margin-bottom: 26px;
  max-width: min(420px, calc(100vw - 48px));
  text-decoration: none;
  width: 100%;
}

.auth-logo img {
  display: block;
  height: auto;
  max-width: min(360px, 100%);
  width: 100%;
}

.auth-logo span {
  color: rgba(215, 179, 108, 0.92);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.auth-card {
  background: var(--auth-panel);
  border: 1px solid var(--auth-line);
  backdrop-filter: blur(14px);
  position: relative;
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  display: grid;
  gap: 22px;
  max-width: 430px;
  padding: 28px 34px;
  width: 100%;
}

.auth-card::before {
  background: linear-gradient(135deg, rgba(215, 179, 108, 0.24), transparent 36%, rgba(184, 117, 77, 0.12));
  border-radius: inherit;
  content: "";
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  position: absolute;
}

.auth-card > * {
  position: relative;
}

.auth-heading {
  text-align: center;
}

.auth-heading span {
  color: var(--auth-gold);
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.auth-heading h1 {
  color: #f7f2e8;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
}

.auth-heading p {
  color: var(--auth-muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 8px 0 0;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  display: grid;
  gap: 8px;
}

.auth-form label > span {
  color: #e8dfcf;
  font-size: 14px;
  font-weight: 600;
}

.auth-input {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(213, 183, 123, 0.22);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 46px;
  padding: 0 13px;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-input:has(.auth-password-toggle) {
  grid-template-columns: 28px minmax(0, 1fr) 34px;
}

.auth-input:focus-within {
  background: transparent;
  border-color: rgba(215, 179, 108, 0.68);
  box-shadow: 0 0 0 3px rgba(215, 179, 108, 0.13);
}

.auth-input__icon {
  background: transparent !important;
  color: #c5b995;
  display: grid;
  height: 100%;
  place-items: center;
}

.auth-input__icon svg {
  height: 21px;
  width: 21px;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--auth-text);
  font: inherit;
  font-size: 16px;
  min-height: 46px;
  padding: 0 0 0 7px;
  width: 100%;
}

.auth-form input::placeholder {
  color: #9f978c;
}

.auth-form input:focus {
  outline: none;
}

.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus {
  background: transparent !important;
  -webkit-background-clip: text;
  -webkit-text-fill-color: var(--auth-text);
  caret-color: var(--auth-text);
  box-shadow: none;
  transition: background-color 9999s ease-out;
}

.auth-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.auth-row a {
  color: #f2d79b;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.auth-row a:hover,
.auth-row a:focus-visible {
  color: #fff2c9;
  outline: none;
  text-decoration: underline;
  text-decoration-color: rgba(215, 179, 108, 0.64);
  text-underline-offset: 3px;
}

.auth-check {
  align-items: center;
  display: flex !important;
  gap: 10px !important;
}

.auth-check input {
  accent-color: var(--auth-gold);
  height: 16px;
  width: 16px;
}

.auth-check span {
  color: #e8dfcf !important;
  font-weight: 500 !important;
}

.auth-form button {
  align-items: center;
  background: linear-gradient(135deg, var(--auth-gold), var(--auth-copper));
  border: 0;
  border-radius: 8px;
  color: #14110c;
  cursor: pointer;
  display: inline-flex;
  gap: 10px;
  justify-content: center;
  font: inherit;
  font-weight: 600;
  min-height: 48px;
  padding: 11px 18px;
}

/* UI overflow guard: button labels must stay inside their controls. */
.auth-form button:not(.auth-password-toggle),
.auth-row a {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal;
}

.auth-form button:not(.auth-password-toggle) {
  flex-wrap: wrap;
}

.auth-form button span {
  font-size: 21px;
  line-height: 1;
}

.auth-demo-divider {
  align-items: center;
  color: var(--auth-muted);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  font-size: 12px;
  font-weight: 800;
  margin: -4px 0;
}

.auth-demo-divider::before,
.auth-demo-divider::after {
  background: rgba(213, 183, 123, 0.22);
  content: "";
  height: 1px;
}

.auth-demo-form {
  display: grid;
  gap: 9px;
}

.auth-demo-button {
  align-items: center;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(215, 179, 108, 0.36);
  border-radius: 8px;
  color: #f7f2e8;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.auth-demo-button:hover,
.auth-demo-button:focus-visible {
  background: rgba(215, 179, 108, 0.13);
  border-color: rgba(215, 179, 108, 0.68);
  outline: none;
}

.auth-demo-button span {
  color: var(--auth-gold);
  font-size: 19px;
  line-height: 1;
}

.auth-demo-form small {
  color: var(--auth-muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.auth-password-toggle {
  align-items: center;
  background: transparent !important;
  background-color: transparent !important;
  border: 0;
  box-shadow: none !important;
  color: #c5b995 !important;
  cursor: pointer;
  display: inline-grid !important;
  height: 34px;
  justify-content: center;
  min-height: 34px !important;
  min-width: 34px;
  padding: 0 !important;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  color: #f0eee8 !important;
  outline: none;
}

.auth-password-toggle svg {
  height: 22px;
  width: 22px;
}

.auth-eye--hide,
.auth-password-toggle[data-visible="true"] .auth-eye--show {
  display: none;
}

.auth-password-toggle[data-visible="true"] .auth-eye--hide {
  display: block;
}

.auth-alert {
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(251, 113, 133, 0.4);
  border-radius: 12px;
  color: #fecdd3;
  padding: 12px;
}

.auth-alert--success {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(52, 211, 153, 0.38);
  color: #bbf7d0;
}

.auth-back-link {
  color: #d5b77b;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.auth-back-link:hover {
  color: #f7e4ad;
}

.auth-footer {
  color: #918979;
  font-size: 13px;
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  text-align: center;
  width: min(560px, calc(100vw - 40px));
}

.auth-footer span {
  grid-column: 2;
  justify-self: center;
  min-width: 0;
  white-space: nowrap;
}

.auth-footer::before,
.auth-footer::after {
  background: linear-gradient(90deg, transparent, rgba(213, 183, 123, 0.32));
  content: "";
  height: 1px;
  width: min(104px, 100%);
}

.auth-footer::before {
  grid-column: 1;
  justify-self: end;
}

.auth-footer::after {
  background: linear-gradient(90deg, rgba(213, 183, 123, 0.32), transparent);
  grid-column: 3;
  justify-self: start;
}

@media (max-width: 540px) {
  .auth-logo {
    max-width: min(330px, calc(100vw - 40px));
  }

  .auth-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Auth safety guard: preserve casing without overriding the page visual language. */
body.auth-page :where(.auth-logo span, .auth-heading span, h1, h2, h3, strong, p, label, a, button, input) {
  letter-spacing: 0;
  text-transform: none;
}
