/* Montserrat, loaded directly here (not via head.tpl or the parent theme):
   this file no longer depends on any other stylesheet for its webfont to
   actually be present. Must stay the very first rule in the file — @import
   is only valid before any other CSS rule. */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


.auth-minimal-page {
  --auth-accent: var(--color-brand, #FFC42D);
  --auth-ink: var(--color-white, #fff);
  --auth-muted: #9a9a9a;
  --auth-border: #262626;
  --auth-surface: #0d0d0d;
  --auth-bg: var(--color-black, #000);
  --auth-input-bg: #141414;
  --auth-font: var(--font-main, "Roboto", sans-serif);

  background-color: var(--auth-bg);
  font-family: var(--auth-font);
}

/* ---------- Split screen ---------- */
.auth-minimal-split {
  min-height: 100vh;
  display: flex;
}

.auth-minimal-form-panel {
  flex: 0 0 50%;
  max-width: 50%;
  min-height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  box-sizing: border-box;
  background: var(--auth-bg);
}

/* Vertical spacing used to live on .auth-minimal-form-panel's own padding,
   with a padding/negative-margin hack here to fake a sticky header without
   a gap. That hack overlapped the header with the body in the flex column,
   letting scrolled-up content (e.g. the page heading) render behind it.
   Owning the vertical padding directly on header/body/footer avoids both
   problems: no gutter above the header for content to bleed through before
   sticky engages, and no negative margin to fight the flex layout. */
.auth-minimal-panel-header {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--auth-bg);
  padding: 20px 0;
}

.auth-minimal-panel-body {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 0 40px;
}

.auth-minimal-form-panel-inner {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  color: var(--auth-ink);
}

.auth-minimal-panel-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: .75rem;
  color: var(--auth-muted);
  padding: 20px 0;
}

.auth-minimal-panel-footer a {
  color: var(--auth-muted);
  text-decoration: none;
}

.auth-minimal-panel-footer a:hover {
  color: var(--auth-ink);
  text-decoration: underline;
}

body.register_page .auth-minimal-form-panel-inner {
  max-width: 580px;
}

/* Defensive reset: every form partial rendered in this panel
   (login-form.tpl, customer-form-regi.tpl) is now our own override, so
   this is mostly a safety net for hook-injected content (e.g.
   displayCustomerLoginFormAfter) rather than a fight against unknown
   inherited markup. Base color is inherited (no !important) so it never
   fights the intentional colors set below (muted subtext, red errors). */
.auth-minimal-form-panel-inner * {
  background-color: transparent;
  border-color: var(--auth-border);
}

.auth-minimal-form-panel-inner .block,
.auth-minimal-form-panel-inner section {
  border: none;
  background: transparent;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
}

.auth-minimal-form-panel-inner :empty:not(input):not(textarea):not(svg):not(path):not(img) {
  display: none;
}

.auth-minimal-visual-panel {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 100vh;
  background-color: var(--color-white, #fff);
}

.auth-minimal-visual-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--auth-visual-position, center center);
}

.auth-minimal-visual-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, .3);
}

.auth-minimal-visual-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 48px;
  box-sizing: border-box;
}

.auth-minimal-visual-title {
  color: var(--color-white, #fff);
  font-family: var(--auth-font);
  font-size: 2.25rem;
  font-weight: var(--fw-bold, 800);
  line-height: 1.15;
  margin: 0 0 12px;
}

.auth-minimal-visual-tagline {
  color: var(--auth-ink);
  font-family: var(--auth-font);
  font-size: 1rem;
  font-weight: var(--fw-medium, 500);
  line-height: 1.5;
  max-width: 600px;
  margin: 0;
}

@media (max-width: 991px) {
  .auth-minimal-visual-panel {
    display: none;
  }

  .auth-minimal-form-panel {
    flex: 1 1 100%;
    max-width: none;
  }
}

.auth-minimal-card {
  background: transparent;
  border: none;
  padding: 0;
}

.auth-minimal-logo {
  display: inline-block;
  margin: 0;
}

.auth-minimal-logo img {
  max-height: 80px;
  width: auto;
  display: inline-block;
  filter: brightness(0) invert(1);
}

.auth-minimal-card .page_heading,
.auth-minimal-heading {
  text-align: left;
  font-size: 1.5rem;
  font-weight: var(--fw-bold, 800);
  color: var(--auth-ink);
  margin: 0 0 8px;
}

.auth-minimal-subtext {
  text-align: left;
  color: var(--auth-muted);
  font-size: .925rem;
  margin: 0 0 28px;
}

.auth-minimal-subtext a {
  color: var(--auth-accent);
  font-weight: var(--fw-semibold, 600);
  text-decoration: none;
}

.auth-minimal-subtext a:hover {
  text-decoration: underline;
}

.auth-minimal-form-panel-inner #notifications {
  margin-bottom: 20px;
}

.auth-minimal-form-panel-inner #notifications .container {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

/* ---------- Error list ---------- */
.auth-minimal-card .ps-alert-error {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-minimal-card .ps-alert-error .item {
  display: flex !important;
  align-items: center !important;
  padding: 12px 14px !important;
  background: rgba(228, 3, 46, .12) !important;
  border: 1px solid rgba(228, 3, 46, .35) !important;
  border-left: 3px solid var(--auth-accent) !important;
  border-radius: 0 !important;
  color: #ff9d9d;
  font-size: .875rem;
}

.auth-minimal-card .ps-alert-error p {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font-size: inherit !important;
}

/* ---------- Success list (password-infos) ---------- */
.auth-minimal-card .ps-alert-success {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-minimal-card .ps-alert-success .item {
  display: flex !important;
  align-items: center !important;
  padding: 12px 14px !important;
  background: rgba(34, 197, 94, .12) !important;
  border: 1px solid rgba(34, 197, 94, .35) !important;
  border-left: 3px solid #22c55e !important;
  border-radius: 0 !important;
  color: #86efac;
  font-size: .875rem;
}

.auth-minimal-card .ps-alert-success p {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font-size: inherit !important;
}

/* ---------- Form sections ---------- */
.auth-minimal-card .form-section + .form-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--auth-border);
}

.auth-minimal-card .form-section-title {
  display: inline-block;
  font-weight: var(--fw-bold, 800);
  text-transform: uppercase;
  color: var(--auth-ink);
  margin-bottom: 0;
  font-size: 1rem;
}

.auth-minimal-card .form-section-hint {
  font-size: .8125rem;
  color: var(--auth-muted);
  margin: 0 0 16px;
}

.auth-minimal-card .form-section-title + .form-row,
.auth-minimal-card .form-section-title + .form-group,
.auth-minimal-card .form-section-hint + .form-row,
.auth-minimal-card .form-section-hint + .form-group {
  margin-top: 16px;
}

/* ---------- Field grid ---------- */
.auth-minimal-card .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: baseline;
  gap: 16px;
}

.auth-minimal-card .form-row + .form-row,
.auth-minimal-card .form-row + .form-group,
.auth-minimal-card .form-group + .form-row,
.auth-minimal-card .form-group + .form-group {
  margin-top: 16px;
}

@media (max-width: 560px) {
  .auth-minimal-card .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Fields ---------- */
.auth-minimal-card .form-group {
  margin: 0;
}

.auth-minimal-card .form-control-label {
  display: block;
  font-size: .8125rem;
  font-weight: var(--fw-semibold, 600);
  color: var(--auth-muted);
  margin-bottom: 0;
}

.auth-minimal-card .form-control-label.required::after {
  content: " *";
  color: var(--auth-accent);
  font-weight: var(--fw-bold, 700);
}

.auth-minimal-card .form-control-hint {
  font-size: .75rem;
  color: var(--auth-muted);
  margin-top: 5px;
}

.auth-minimal-card .field-error {
  font-size: .75rem;
  color: var(--auth-accent);
  margin: 6px 0 0;
}

.auth-minimal-card .form-control,
.auth-minimal-card select.form-control {
  width: 100%;
  height: 44px !important;
  padding: 0 14px;
  font-family: var(--auth-font);
  font-size: .925rem;
  font-weight: var(--fw-medium, 500);
  color: var(--auth-ink);
  background-color: var(--auth-input-bg);
  border: 1px solid var(--auth-border);
  border-radius: 0;
  box-shadow: none;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.auth-minimal-card .form-control::placeholder {
  color: #666;
}

.auth-minimal-card textarea.form-control {
  height: auto !important;
  padding: 12px 14px;
  min-height: 88px;
  resize: vertical;
}

.auth-minimal-card .form-control:hover {
  border-color: #3a3a3a;
}

.auth-minimal-card .form-control:focus {
  outline: none;
  background-color: #000;
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px rgba(228, 3, 46, .18);
}

.auth-minimal-card select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239a9a9a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.auth-minimal-card select.form-control option {
  background-color: var(--auth-input-bg);
  color: var(--auth-ink);
}

/* ---------- Civility segmented control ---------- */
.auth-minimal-card .gender-options {
  display: flex;
  gap: 8px;
}

.auth-minimal-card .gender-option {
  flex: 1;
  position: relative;
}

.auth-minimal-card .gender-option input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.auth-minimal-card .gender-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border: 1px solid var(--auth-border);
  border-radius: 0;
  font-size: .8125rem;
  font-weight: var(--fw-medium, 500);
  color: var(--auth-muted);
  background: var(--auth-input-bg);
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}

.auth-minimal-card .gender-option input:checked + span {
  border-color: var(--auth-accent);
  color: var(--auth-ink);
  background: var(--auth-accent);
  font-weight: var(--fw-semibold, 600);
}

.auth-minimal-card .gender-option input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(228, 3, 46, .18);
}

/* ---------- Checkbox (terms / newsletter) ---------- */
.auth-minimal-card .form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.auth-minimal-card .form-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--auth-accent);
  cursor: pointer;
}

.auth-minimal-card .form-check label {
  font-size: .8125rem;
  color: var(--auth-muted);
  line-height: 1.5;
  cursor: pointer;
}

.auth-minimal-card .form-check label.required::after {
  content: " *";
  color: var(--auth-accent);
  font-weight: var(--fw-bold, 700);
}

.auth-minimal-card .form-check a {
  color: var(--auth-ink);
  font-weight: var(--fw-semibold, 600);
  text-decoration: underline;
}

.auth-minimal-forgot {
  margin: 10px 0 0;
  text-align: right;
}

.auth-minimal-forgot a {
  font-size: .8125rem;
  color: var(--auth-muted);
  text-decoration: none;
}

.auth-minimal-forgot a:hover {
  color: var(--auth-ink);
  text-decoration: underline;
}

/* ---------- Footer / actions ---------- */
.auth-minimal-card .form-footer {
  margin-top: 28px;
}

#login-form .form-footer {
  margin-top: 20px;
}

.auth-minimal-card .btn-primary {
  background-color: var(--auth-accent);
  border: 1px solid var(--auth-accent);
  color: var(--auth-ink);
  border-radius: 0;
}

.auth-minimal-card .btn-primary:hover {
  background-color: var(--auth-accent);
  color: var(--auth-ink);
  opacity: .9;
}

.auth-minimal-card .btn-default {
  background-color: transparent;
  border: 1px solid var(--auth-border);
  color: var(--auth-ink);
  border-radius: 0;
}

.auth-minimal-card .btn-default:hover {
  border-color: var(--auth-ink);
}

.auth-minimal-card .btn-full-width {
  width: 100%;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-minimal-switch {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--auth-border);
  text-align: center;
}

.auth-minimal-switch-link {
  display: inline-block;
  font-size: .875rem;
  color: var(--auth-muted);
  font-weight: var(--fw-medium, 500);
}

.auth-minimal-switch-link:hover {
  color: var(--auth-ink);
}

.auth-minimal-card .row {
  margin-left: -8px;
  margin-right: -8px;
}

.auth-minimal-card .row > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
}

.auth-minimal-card [class*="offset-"] {
  margin-left: 0 !important;
}

/* No mobile override needed anymore: the base horizontal padding (20px)
   already matches what this used to set, and the vertical padding must
   stay off the parent (see the comment on .auth-minimal-panel-header
   above) rather than being reintroduced here. */
