/*
 * PumpWorks Selector and Configurator
 * Copyright (c) 2026 DXP Enterprises, Inc. All rights reserved.
 *
 * Developed by Frees Consulting and Development LLC (FCD)
 * https://freesconsulting.com
 */

/* Login page styles — matches akb/ux/monte-cristo-entry.html exactly. The
   tokens these rules read are declared in tokens.css, linked before this file. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--mc-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  background: var(--mc-white);
  color: var(--mc-black);
  overflow: hidden;
}

.entry-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.entry-card {
  width: 100%;
  max-width: 520px;
  text-align: center;
}

.logo {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

.product-name {
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--mc-black);
  margin: 4px 0 40px;
  line-height: 1.1;
}

/* The locked-out notice — the one refusal the page states in words. Left
   aligned with the fields it sits above, and red because it is a refusal, but
   quiet: it is an explanation, not an alarm. */
.signin-notice {
  text-align: left;
  margin: 0 0 20px;
  padding: 12px 14px;
  border-left: 3px solid var(--mc-red);
  background: var(--mc-gray-100);
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--mc-gray-800);
}

.signin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* A statement rather than a refusal — "another code is on its way", "give it a
   moment". Same box, without the red rule that marks something being wrong. */
.signin-notice-quiet {
  border-left-color: var(--mc-gray-300);
}

/* The six-digit code. Spaced and centred so the digits can be read back off
   the screen against the message they came from, and tabular so they do not
   shift under the caret as they are typed. */
.signin-input-code {
  /* Monospace because six digits read as digits (branding.md §4 Inputs). */
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em;      /* the tracking is added AFTER the last digit; this re-centres */
  font-variant-numeric: tabular-nums;
}

/* The second action on a page whose primary action is the red button: sending
   another code is a way out, not the way on. */
.signin-secondary {
  margin-top: 18px;
  text-align: center;
}

.link-btn {
  padding: 0;
  text-decoration: none;
  font-family: var(--mc-font);
  font-size: 0.85rem;
  color: var(--mc-gray-800);
  background: none;
  border: none;
  border-bottom: 1px solid var(--mc-gray-300);
  cursor: pointer;
}

.link-btn:hover {
  color: var(--mc-red);
  border-bottom-color: var(--mc-red);
}

/* Two ways out sit side by side under the button; the separator keeps them from
   reading as one long link. */
.signin-secondary-sep {
  color: var(--mc-gray-300);
  font-size: 0.85rem;
  margin: 0 6px;
}

.input-label {
  display: block;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mc-gray-800);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.signin-input {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--mc-font);
  font-size: 0.95rem;
  color: var(--mc-black);
  background: var(--mc-white);
  border: 1.5px solid var(--mc-gray-300);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s;
}

.signin-input:focus {
  border-color: var(--mc-red);
}

/* The entry card's primary control. Styled on the class rather than the tag,
   because it is sometimes a submit and sometimes a link out ("Send me a new
   link", "Back to sign in") and the reader is looking at one control either
   way. `display: block` and the centring are what a <button> already does and
   an <a> does not. */
.enter-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  text-align: center;
  text-decoration: none;
  font-family: var(--mc-font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--mc-white);
  background: var(--mc-red);
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.15s;
  letter-spacing: 0.02em;
}

.enter-btn:hover {
  background: var(--mc-red-dark);
}


.entry-footer {
  text-align: center;
  padding: 20px 24px;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--mc-gray-500);
}

.entry-footer a {
  color: var(--mc-gray-500);
  text-decoration: none;
}

.entry-footer a:hover {
  color: var(--mc-red);
}

/* Shake animation — triggered by .shake class on the inputs, added on a
   refused sign-in. There is no text error: the shake IS the message
   (branding.md §9). */
@keyframes mc-shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX(8px); }
  60%       { transform: translateX(-6px); }
  80%       { transform: translateX(6px); }
}

.signin-input.shake {
  animation: mc-shake 0.4s ease;
  border-color: var(--mc-red);
}

@media (max-width: 540px) {
  .product-name { font-size: 2.4rem; }
}
