/* ============================================================
   The Workstation — Login page skin
   ============================================================ */

/* ---------- Page background -------------------------------- */
body {
  background-color: var(--surface);
}

/* ---------- Two-column layout ------------------------------ */
#loginWrapper {
  max-width: 960px;
  margin: 48px auto 96px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

#loginWrapper #efPageContent {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  display: block !important;
}

/* ---------- Login column ----------------------------------- */
#efLoginContainer {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

#efLoginContainer > h2,
#efLoginContainer h2,
#efPageContent #efLoginContainer h2 {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  font-family: var(--font-display) !important;
  font-size: clamp(20px, 2.5vw, 26px) !important;
  font-weight: 700 !important;
  color: var(--ink-900) !important;
  margin-bottom: 20px !important;
  letter-spacing: -0.01em !important;
}

/* ---------- Card ------------------------------------------- */
#efLoginBox {
  background: #fff !important;
  border: 1px solid var(--ink-200) !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 3px rgba(15,20,17,0.06), 0 4px 16px rgba(15,20,17,0.04) !important;
  overflow: hidden !important;
  padding: 0 !important;
}

/* ---------- Card header ------------------------------------ */
#efLoginBoxHeader {
  background: var(--ink-900) !important;
  color: #fff !important;
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 14px 24px !important;
  border: 0 !important;
  border-radius: 0 !important;
}

/* ---------- Card body -------------------------------------- */
#efLoginBoxContent {
  padding: 28px 24px !important;
}

#efLoginBoxContent p {
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  overflow: visible !important;
}

#efLoginBoxContent p:last-of-type {
  margin-bottom: 0 !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

/* ---------- Labels ----------------------------------------- */
#efLoginBoxContent label {
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--ink-700) !important;
}

/* ---------- Inputs ----------------------------------------- */
.efTextInput {
  width: 100% !important;
  padding: 10px 14px !important;
  border: 1px solid var(--ink-300) !important;
  border-radius: 8px !important;
  font-family: var(--font-sans) !important;
  font-size: 15px !important;
  color: var(--ink-900) !important;
  background: #fff !important;
  box-sizing: border-box !important;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.efTextInput:focus {
  border-color: var(--brand-500) !important;
  box-shadow: 0 0 0 3px rgba(150,193,31,0.2) !important;
  outline: 0 !important;
}

/* Password field wrapper — keep eye icon aligned */
#efLoginBoxContent p:has(#efPasswordField) {
  position: relative;
}
.efPasswordEyeOpenIcon,
.efPasswordEyeClosedIcon {
  position: absolute !important;
  right: 12px !important;
  bottom: 10px !important;
  color: var(--ink-500) !important;
  cursor: pointer !important;
}

/* ---------- Forgotten password link ------------------------ */
#efLoginBoxContent a {
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  color: var(--brand-700) !important;
  text-decoration: none !important;
}
#efLoginBoxContent a:hover {
  color: var(--brand-800) !important;
  text-decoration: underline !important;
}

/* ---------- Submit button ---------------------------------- */
#efLoginBoxContent .efButton[type="submit"] {
  display: inline-block !important;
  padding: 10px 28px !important;
  background: var(--ink-900) !important;
  color: #fff !important;
  border: 1.5px solid var(--ink-900) !important;
  border-radius: 8px !important;
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 150ms ease, border-color 150ms ease;
  text-shadow: none !important;
  box-shadow: none !important;
  float: none !important;
}
#efLoginBoxContent .efButton[type="submit"]:hover,
#efLoginBoxContent .efButton[type="submit"]:focus {
  background: var(--brand-500) !important;
  border-color: var(--brand-500) !important;
  color: var(--ink-900) !important;
}

/* ---------- New customer panel ----------------------------- */
.login-new-customer {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15,20,17,0.06), 0 4px 16px rgba(15,20,17,0.04);
  padding: 32px 28px;
}

.login-new-customer h2 {
  font-family: var(--font-display) !important;
  font-size: clamp(20px, 2.5vw, 26px) !important;
  font-weight: 700 !important;
  color: var(--ink-900) !important;
  margin: 0 0 12px !important;
  letter-spacing: -0.01em !important;
}

.login-new-customer p {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink-600);
  line-height: 1.6;
  margin: 0 0 24px;
}

.login-new-customer .btn--primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--brand-500);
  color: var(--ink-900) !important;
  border: 1.5px solid var(--brand-500);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease;
}
.login-new-customer .btn--primary:hover {
  background: var(--brand-400);
  border-color: var(--brand-400);
}

/* ---------- Responsive ------------------------------------- */
@media (max-width: 680px) {
  #loginWrapper {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px;
  }
}
