/* =========================================================================
   MOCKLAB — account screens (login, register, reset).
   Follows the creatsy.com sign-in dialog: a white square-cornered panel on a
   dimmed photographic backdrop, oversized title, uppercase field labels and a
   black primary button. Loaded after styles.css / content.css.
   ========================================================================= */

.page-auth .site-footer { display: none; }

.auth-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 112px);
  padding: var(--sp-32) var(--sp-20) var(--sp-40);
  background: #111 url("assets/images/hero-studio.jpg") center 40% / cover no-repeat;
}

.auth-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.9);
}

.auth-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  padding: var(--sp-40) var(--sp-52) var(--sp-40);
  background: var(--surface);
}

.auth-close {
  position: absolute;
  top: var(--sp-20);
  right: var(--sp-20);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
}
.auth-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.auth-close:hover { color: var(--accent); }

.auth-panel h1 {
  margin: 0 0 var(--sp-12);
  font-size: 38px;
  font-weight: var(--w-bold);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: center;
}

.auth-sub {
  margin: 0 0 var(--sp-30);
  font-size: 15px;
  line-height: 1.55;
  text-align: center;
  color: var(--primary);
}
.auth-sub a { font-weight: var(--w-bold); }
.auth-sub a:hover { text-decoration: underline; }

.auth-note {
  margin: 0 0 var(--sp-20);
  padding: var(--sp-10) var(--sp-12);
  border: 1px solid #dedede;
  border-left: 3px solid var(--ink);
  font-size: 13px;
  line-height: 1.55;
}
.auth-note.is-error { border-left-color: var(--accent); color: #8a1f1f; }
.auth-note a { text-decoration: underline; }

.auth-form { display: grid; gap: var(--sp-16); }

.auth-label {
  display: block;
  margin-bottom: var(--sp-6);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.auth-field input {
  width: 100%;
  height: 48px;
  padding: 0 var(--sp-12);
  border: 1px solid #dedede;
  border-radius: 0;
  background: var(--surface);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease);
}
.auth-field input:focus { outline: none; border-color: var(--ink); }
.auth-field input::placeholder { color: #adadad; }

.auth-hint {
  display: block;
  margin-top: var(--sp-5);
  font-size: 12px;
  color: var(--muted);
}

.auth-sub strong { font-weight: var(--w-bold); }

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-16);
  flex-wrap: wrap;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-10);
  font-size: 14px;
  cursor: pointer;
}
.auth-check input {
  appearance: none;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  background: var(--surface);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.auth-check input:checked { border-color: var(--ink); background: var(--ink); }
.auth-check input:checked::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--surface);
  border-bottom: 2px solid var(--surface);
  transform: rotate(-45deg) translateY(-1px);
}

.auth-help { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.auth-help:hover { color: var(--accent); }

.auth-submit {
  justify-self: center;
  min-width: 196px;
  height: 50px;
  margin-top: var(--sp-5);
  padding: 0 var(--sp-24);
  background: var(--ink);
  color: var(--surface);
  border-radius: 0;
  font-size: 14px;
  font-weight: var(--w-normal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background var(--t-fast) var(--ease);
}
.auth-submit:hover { background: var(--accent); }

/* Social sign-in — rendered only when a provider is configured. */
.auth-social {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-12);
  margin-top: var(--sp-24);
}
.auth-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-10);
  height: 50px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.auth-social svg { width: 18px; height: 18px; flex: 0 0 18px; }
.auth-social .is-facebook { background: #3b5998; color: #ffffff; }
.auth-social .is-facebook:hover { background: #314b80; }
.auth-social .is-google { background: var(--surface); border: 1px solid #dedede; color: var(--ink); }
.auth-social .is-google:hover { border-color: var(--ink); }

.auth-foot {
  margin: var(--sp-24) 0 0;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  color: var(--muted);
}
.auth-foot a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 719px) {
  .auth-stage { min-height: calc(100vh - 96px); padding: var(--sp-20) var(--sp-12) var(--sp-30); }
  .auth-panel { padding: var(--sp-30) var(--sp-20) var(--sp-30); }
  .auth-panel h1 { font-size: 28px; margin-bottom: var(--sp-12); }
  .auth-sub { font-size: 14px; margin-bottom: var(--sp-20); }
  .auth-field input { height: 46px; font-size: 15px; }
  .auth-submit { width: 100%; min-width: 0; }
  .auth-social { grid-template-columns: minmax(0, 1fr); }
  .auth-close { top: var(--sp-10); right: var(--sp-10); }
}
