/* =========================================================
   DIALGA — Sign-in / Sign-up Stylesheet
   ========================================================= */

/* -----------------------------
   1. RESET
------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--fontDisplay);
  font-weight: 400; /* Abril Fatface ships as a single weight */
}

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

ul,
ol {
  list-style: none;
}

button,
input {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

/* -----------------------------
   2. ROOT VARIABLES
------------------------------ */
:root {
  /* Colors */
  --colorWhite: #ffffff;
  --colorBlack: #000000;
  --colorGrey: #757575;

  /* Fonts */
  --fontDisplay: "Abril Fatface", "Times New Roman", serif;
  --fontBody: "Manrope", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --maxWidth: 1440px;
  --gutter: 32px;
  --border: 1px solid var(--colorBlack);
  --borderLight: 1px solid #e0e0e0;
  --headerHeight: 88px;
}

/* -----------------------------
   3. PAGE SETUP
------------------------------ */
body {
  background-color: var(--colorWhite);
  color: var(--colorBlack);
  font-family: var(--fontBody);
  font-size: 16px;
  line-height: 1.5;
}

/* -----------------------------
   4. CONTAINER
------------------------------ */
.container {
  width: 100%;
  max-width: var(--maxWidth);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* -----------------------------
   5. HEADER
------------------------------ */
header {
  background-color: var(--colorWhite);
}

.headerContainer {
  height: var(--headerHeight);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navLinks {
  display: flex;
  align-items: center;
  gap: 40px;
}

.navLink {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.logo img {
  height: 22px;
  width: auto;
}

/* -----------------------------
   6. FOOTER
------------------------------ */
footer {
  padding: 64px 0 32px;
}

.footerContainer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 48px;
}

.logoAlt img {
  height: 112px;
  width: auto;
}

.footerNavLinks {
  display: flex;
  gap: 64px;
}

.footerNavGroup {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footerLabel {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--colorGrey);
  margin-bottom: 4px;
}

.footerLink {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footerBottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: var(--borderLight);
}

.footerCopyright {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--colorGrey);
}

.footerSocials {
  display: flex;
  gap: 24px;
}

.socialLink {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* -----------------------------
   7. UTILITY — skip link
   (not in the base file; added since sign-in.html includes one)
------------------------------ */
.skipLink {
  position: absolute;
  top: -48px;
  left: var(--gutter);
  z-index: 100;
  background: var(--colorBlack);
  color: var(--colorWhite);
  padding: 12px 20px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: top 0.2s ease;
}

.skipLink:focus {
  top: 16px;
}

/* -----------------------------
   8. SIGN-IN / SIGN-UP
------------------------------ */

/* Dark-surface tokens — the base file only defines colorWhite/Black/Grey,
   which aren't enough contrast range for a dark card. Scoped here rather
   than added to the global :root above, since nothing else on the site
   uses them yet. */
:root {
  --colorCharcoal: #1a1815;
  --colorCharcoalLine: rgba(255, 255, 255, 0.16);
  --colorCharcoalLineHover: rgba(255, 255, 255, 0.4);
  --colorMuted: #a39e94;
}

.authSection {
  min-height: calc(100vh - var(--headerHeight));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px var(--gutter);
}

.authCard {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.authImage {
  position: relative;
  flex: 0 0 40%;
}

.authImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.authImageCaption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--colorWhite);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.authFormPanel {
  flex: 1 1 auto;
  min-width: 0;
  padding: 56px 96px;
  background: var(--colorCharcoal);
  color: var(--colorWhite);
}

.authEyebrow {
  position: relative;
  margin: 0 0 28px;
  padding-top: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--colorMuted);
}

.authEyebrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 1px;
  background: var(--colorWhite);
}

/* Toggle: two text tabs over a hairline track, a solid indicator slides between them */

.authToggle {
  position: relative;
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--colorCharcoalLine);
}

.authToggleBtn {
  padding: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--colorMuted);
  cursor: pointer;
  transition: color 0.25s ease;
}

.authToggleBtn.is-active {
  color: var(--colorWhite);
}

.authToggleBtn:hover,
.authToggleBtn:focus-visible {
  color: var(--colorWhite);
}

.authToggleIndicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 1px;
  width: 64px;
  background: var(--colorWhite);
  transition: transform 0.4s ease, width 0.4s ease;
}

.authHeading {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.15;
  color: var(--colorWhite);
}

.authSubtext {
  margin: 0 0 36px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--colorMuted);
  max-width: 38ch;
}

.authForm {
  display: flex;
  flex-direction: column;
}

.authField {
  margin-bottom: 24px;
}

.authField label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--colorMuted);
}

.authField input {
  display: block;
  width: 100%;
  padding: 8px 2px;
  font-size: 15px;
  color: var(--colorWhite);
  background: transparent;
  border-bottom: 1px solid var(--colorCharcoalLine);
  border-radius: 0;
  transition: border-color 0.25s ease;
}

.authField input::placeholder {
  color: var(--colorMuted);
  opacity: 0.6;
}

.authField input:hover {
  border-color: var(--colorCharcoalLineHover);
}

.authField input:focus-visible {
  outline: none;
  border-color: var(--colorWhite);
}

.authForgot {
  display: block;
  width: fit-content;
  margin: -4px 0 28px auto;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--colorMuted);
}

.authForgot:hover,
.authForgot:focus-visible {
  color: var(--colorWhite);
}

.authSubmit {
  width: 100%;
  padding: 17px 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--colorCharcoal);
  background: var(--colorWhite);
  cursor: pointer;
  transition: background 0.25s ease;
}

.authSubmit:hover,
.authSubmit:focus-visible {
  background: var(--colorMuted);
}

.authSwitch {
  margin: 28px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--colorMuted);
}

.authSwitchLink {
  font-weight: 600;
  color: var(--colorWhite);
  text-underline-offset: 3px;
  text-decoration: underline;
  cursor: pointer;
}

.authSwitchLink:hover,
.authSwitchLink:focus-visible {
  color: var(--colorMuted);
}

/* -----------------------------
   9. RESPONSIVE
------------------------------ */
@media (max-width: 860px) {
  .footerNavLinks { gap: 40px; }
  .authCard { flex-direction: column; }
  .authImage { flex-basis: auto; max-width: 100%; min-height: 200px; }
}

@media (max-width: 700px) {
  .footerContainer { flex-direction: column; gap: 32px; }
  .authFormPanel { padding: 44px 28px; }
  .authToggle { gap: 24px; }
}