@font-face {
  font-family: Oswald;
  src: url("/assets/fonts/Oswald-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.portal {
  margin: 0;
  min-height: 100vh;
  color-scheme: dark;
  color: #faf8f5;
  background: #181a1b;
  font-family: Freesentation, "Malgun Gothic", sans-serif;
  font-size: 16px;
}
.portal::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #11141514 20%, #10131512 60%, #14161896),
              url("/assets/login/dark-barre-studio.png") center 55% / cover no-repeat;
}
.portal-shell {
  width: min(1440px, 88%);
  margin: 0 auto;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.portal-header {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #ffffff29;
}
.brand { display: block; width: clamp(135px, 13vw, 194px); height: auto; }
.ranking-link, .action { text-decoration: none; font: inherit; font-weight: 600; }
.ranking-link {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 42px; padding: 0 17px;
  border: 1px solid #77797a; border-radius: 24px;
  color: #f4f3ef; background: #16191bbd;
}
.ranking-link:hover { border-color: #ff8950; }
.portal svg { flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; }
.ranking-link svg { color: #ff8a4e; }
.portal-layout {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(325px, 432px);
  gap: clamp(32px, 6vw, 112px); align-items: center; padding: clamp(42px, 7vh, 84px) 0;
}
.brand-title { align-self: center; font: 700 clamp(60px, 6.8vw, 108px)/1.04 Oswald, sans-serif; letter-spacing: -.035em; }
.brand-title span { display: block; }
.brand-title::after { content: ""; display: block; width: 58px; height: 4px; margin-top: 26px; background: #ff7226; }
.brand-caption {
  margin: 18px 0 0;
  font-size: clamp(18px, 1.5vw, 26px);
  font-weight: 500;
  line-height: 1.5;
  color: #f5f4f1;
  text-shadow: 0 1px 5px #111a;
}
.auth-card {
  align-self: center; width: 100%; padding: clamp(26px, 3vw, 40px);
  background: #1b1e20f5; border: 1px solid #494c4c; border-radius: 14px;
  box-shadow: 0 18px 60px #0003;
}
.auth-card h1 { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -.035em; }
.auth-card h1:lang(en) { font-family: Oswald, sans-serif; font-size: clamp(42px, 4vw, 58px); letter-spacing: -.02em; }
.intro { color: #c8c9c7; margin: 13px 0 29px; line-height: 1.58; word-break: keep-all; }
.auth-form { display: grid; gap: 17px; }
.auth-form label { display: grid; gap: 8px; font-size: 15px; font-weight: 600; }
.auth-form input {
  width: 100%; min-width: 0; height: 48px; border: 1px solid #525657;
  border-radius: 6px; padding: 0 14px; font: inherit; font-size: 16px; font-weight: 400;
  background: #232729; color: #fff; caret-color: #ff8a4e;
}
.auth-form input::placeholder { color: #a2a7a8; }
.portal :is(a,button,input):focus-visible { outline: 2px solid #ff995d; outline-offset: 3px; }
.action {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 6px; cursor: pointer;
}
.primary { margin-top: 4px; border: 1px solid #ff7428; background: #ff7428; color: #171819; }
.primary:hover { background: #ff8747; }
.primary:disabled { opacity: .65; cursor: wait; }
.secondary { margin-top: 10px; background: transparent; border: 1px solid #6b6e6e; color: #eceeed; }
.secondary:hover { background: #2b3032; border-color: #b5b7b7; }
.feedback, #signup-result { margin: 0; font-size: 15px; line-height: 1.6; color: #ffc49b; }
.feedback:empty { display: none; }
#signup-result { padding: 16px 0; }

@media (max-width: 780px) {
  .portal-shell { width: min(90%, 620px); }
  .portal-header { min-height: 76px; }
  .portal-layout { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 32px 0; }
  .brand-title, .login-hero { display: none; }
  .auth-card { max-width: 432px; }
}
@media (max-width: 440px) {
  .portal-shell { width: calc(100% - 36px); }
  .portal-header { min-height: 70px; }
  .ranking-link { font-size: 14px; padding: 0 12px; }
  .auth-card { padding: 26px 22px; }
  .portal-layout { padding: 24px 0 32px; }
}
