/* ==========================================================================
   Unknown Proxies — admin sign-in
   Layout only. Tokens, the wordmark, inputs, buttons and alerts come from
   admin.css so the page matches the dashboard it leads to. The composition
   mirrors the customer site's /login: a slim top bar, a 320px column with
   a SwissPosters heading, and the cube strip along the floor.
   ========================================================================== */

.login-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

/* Top bar */
.login-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 20px 24px;
}
.login-top .brand {
  height: auto;
  padding: 0;
}
.login-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.login-top-link {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-3);
  white-space: nowrap;
}
.login-top-link:hover {
  color: var(--text);
  text-decoration: none;
}

/* The column */
.login-main {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  padding: 56px 16px 112px;
}
.login-column {
  width: 100%;
  max-width: 320px;
  animation: rise var(--t-enter) var(--ease) both;
}
.login-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-3);
}
.login-title {
  margin: 0;
  font-family: var(--font-swiss);
  font-weight: 500;
  font-size: 30px;
  line-height: 36px;
  letter-spacing: 0.025em;
  color: var(--text);
}
.login-lede {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-3);
}
.login-column .alert {
  margin: 16px 0 0;
}

/* Fields */
.login-form {
  margin-top: 8px;
}
.login-field {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
}
.login-field label {
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
}
.login-field .form-control {
  background: transparent;
  border-color: var(--hairline-strong);
}
.login-field .form-control:focus {
  background: transparent;
}
.login-field-aside {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  padding-right: 4px;
}

.login-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
  cursor: pointer;
}
.login-link:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-submit {
  width: 100%;
  margin-top: 24px;
}

/* Two-factor */
.mfa-setup {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  text-align: center;
}
.mfa-qr svg {
  display: block;
  width: 192px;
  height: 192px;
  margin: 0 auto;
  border-radius: var(--r-ctl);
}
.mfa-key-label {
  margin: 12px 0 4px;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-3);
}
.mfa-key {
  display: block;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0.04em;
  color: var(--text);
  overflow-wrap: anywhere;
  user-select: all;
}
.login-field .mfa-code {
  font-family: var(--font-mono);
  font-size: 20px;
  letter-spacing: 0.2em;
  text-align: center;
}
.login-foot {
  margin: 16px 0 0;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
}

/* Floor */
.login-cubes {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46px;
  background: url("/img/footer-cubes.svg") repeat-x left bottom;
  opacity: 0.9;
  pointer-events: none;
}

@media (max-width: 480px) {
  .login-top {
    padding: 16px;
  }
  .login-top-link-prefix {
    display: none;
  }
  .login-main {
    padding-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-column {
    animation: none;
  }
}
