/* Authentification, inscription et récupération : règles nécessaires à ces pages. */
body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) {
  --vvp-customer-page: var(--vvp-ds-page);
  --vvp-customer-surface: #fff;
  --vvp-customer-support: var(--vvp-ds-subtle);
  --vvp-customer-ink: var(--vvp-ds-ink);
  --vvp-customer-muted: var(--vvp-ds-muted);
  --vvp-customer-line: var(--vvp-ds-line);
  --vvp-customer-control: var(--vvp-ds-control);
  --vvp-customer-accent: var(--vvp-ds-accent);
  --vvp-customer-action: var(--vvp-ds-action);
  color: var(--vvp-customer-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, Arial, sans-serif;
}

body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #wrapper {
  background: var(--vvp-customer-page);
}

body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #wrapper > .container-fluid {
  max-width: 1440px;
  margin: 0 auto;
  padding-right: 80px;
  padding-left: 80px;
}

body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 0 64px;
}

body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #main > .page-header {
  width: 100%;
  max-width: 960px;
  margin: 0 0 32px;
  text-align: left;
}

body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #main > .page-header h1 {
  margin: 0;
  color: var(--vvp-customer-ink);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -.65px;
  line-height: 48px;
  text-transform: none;
}

body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #main > .page-header h1::after {
  content: none;
}

/* Shared introduction and secondary account support, without extra content. */
body:is(.page-authentication, .page-registration, .page-guest-tracking) #main > .page-header h1::before {
  content: "";
  display: block;
  width: 24px;
  height: 3px;
  margin-bottom: 12px;
  border-radius: 2px;
  background: var(--vvp-customer-accent);
}
body#password .password-eyebrow { position: relative; }
body#password .password-eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}
.page-authentication .no-account {
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--vvp-ds-radius-panel);
  background: var(--vvp-customer-support);
}

body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #main > #content {
  color: var(--vvp-customer-ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.page-registration #customer-form .form-control-label,
body:is(.page-authentication, .page-password) #main .form-control-label {
  position: static !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  color: var(--vvp-customer-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: normal !important;
}

.page-registration #customer-form .form-group > div::before {
  content: none; display: none;
}

.page-registration #customer-form .form-control,
body:is(.page-authentication, .page-password) #main .form-control {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  color: var(--vvp-customer-ink);
  background: var(--vvp-customer-surface);
  border: 1px solid var(--vvp-customer-control);
  border-radius: var(--vvp-radius-control);
  box-shadow: none;
  font-size: 16px;
  line-height: 24px;
}

.page-registration #customer-form .form-control:focus,
body:is(.page-authentication, .page-password) #main .form-control:focus {
  border-color: var(--vvp-customer-accent);
  box-shadow: 0 0 0 3px var(--vvp-ds-focus-ring);
  outline: 0;
}

/* Native field states: error styling and keyboard focus remain independent. */
body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #main .form-control::placeholder { color:var(--vvp-customer-muted); opacity:1; }
body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #main :is(.form-control-comment,.help-block) { margin:8px 0 0; padding:0; font-size:14px; line-height:20px; overflow-wrap:anywhere; }
body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #main .form-control-comment { color:var(--vvp-customer-muted); }
body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #main .help-block { color:var(--vvp-ds-error); }
body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #main .help-block ul { margin:0; padding:0; list-style:none; }
body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #main .help-block .alert-danger { margin:8px 0 0; padding:0; color:var(--vvp-ds-error); background:transparent; border:0; box-shadow:none; font-size:14px; line-height:20px; }
body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #main .has-error .form-control,
body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #main .has-error .form-control:focus,
body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #main .form-control[aria-invalid="true"],
body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #main .form-control[aria-invalid="true"]:focus { border-color:var(--vvp-ds-error); box-shadow:inset 0 0 0 1px var(--vvp-ds-error); outline:0; }
body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #main .form-control[readonly] { background:var(--vvp-customer-page); border-color:var(--vvp-customer-line); }
body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #main .form-control:disabled { color:var(--vvp-customer-muted); background:var(--vvp-ds-disabled); border-color:var(--vvp-customer-line); opacity:.65; }
body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #main .form-control:focus-visible:focus,
body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #main .has-error .form-control:focus-visible,
body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #main .has-error .form-control:focus:focus-visible,
body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #main .form-control[aria-invalid="true"]:focus-visible,
body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #main .form-control[aria-invalid="true"]:focus:focus-visible { outline:2px solid var(--vvp-customer-accent); outline-offset:3px; }

.page-registration #customer-form .input-group,
.page-authentication #login-form .input-group {
  height: 48px; border-radius: var(--vvp-radius-control);
}

.page-registration #customer-form .input-group .form-control,
.page-authentication #login-form .input-group .form-control {
  height: 48px;
  padding-left: 14px;
  border-radius: var(--vvp-radius-control) 0 0 var(--vvp-radius-control);
}

.page-registration #customer-form .input-group .input-group-btn,
.page-authentication #login-form .input-group .input-group-btn {
  height: 48px;
}

.page-registration #customer-form .input-group .btn,
.page-authentication #login-form .input-group .btn {
  width: 48px;
  min-width: 48px;
  height: 48px;
  color: var(--vvp-customer-ink);
  background: var(--vvp-customer-support);
  border-color: var(--vvp-customer-control);
  border-radius: 0 12px 12px 0;
}

body:is(.page-authentication, .page-password) #main {
  max-width: 592px;
}

body.page-registration #main {
  max-width: 800px;
}

body:is(.page-authentication, .page-registration, .page-password) #main > #content {
  padding: 32px;
  background: var(--vvp-customer-surface);
  border: 1px solid var(--vvp-customer-line);
  border-radius: var(--vvp-ds-radius-panel);
}

.page-authentication .login-form,
.page-authentication #login-form,
.page-registration .register-form,
.page-registration #customer-form,
.page-password .forgotten-password {
  width: 100%; max-width: none; margin: 0;
}

.page-authentication #login-form .form-group,
.page-registration #customer-form .form-group,
.page-password #main .form-group {
  margin: 0 0 16px;
}

.page-authentication #login-form .form-group > [class*="col-"],
.page-registration #customer-form .form-group > [class*="col-"],
.page-password #main .form-group > [class*="col-"] {
  float: none;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.page-authentication #login-form .forgot-password {
  margin: 8px 0 24px; text-align: right;
}

.page-authentication #login-form .forgot-password a,
.page-registration .register-form__login a,
.page-password .password-back-link {
  color: var(--vvp-ds-accentText); font-weight: 600; text-decoration: none;
}

.page-authentication #login-form .form-footer,
.page-registration #customer-form .form-footer {
  margin-top: 24px; padding: 0; border: 0;
}

.page-authentication #submit-login,
.page-registration #customer-form .form-footer .btn-primary,
.page-password #main .btn-primary {
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  color: #fff;
  background: var(--vvp-customer-action);
  border-color: var(--vvp-customer-action);
  border-radius: var(--vvp-ds-radius-action);
  box-shadow: none;
  font-size: 16px;
  font-weight:500;
  line-height:20px;
  text-transform: none;
}

.page-authentication .no-account {
  margin: 24px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--vvp-customer-line);
  text-align: center;
}

.page-authentication .no-account a {
  color: var(--vvp-ds-accentText); font-weight: 600;
}

.page-registration .register-form__login {
  margin: 0 0 24px; color: var(--vvp-customer-muted); font-size: 15px;
}

/* Password page: override legacy ID selectors and remove the decorative icon. */
body#password #main { max-width: 640px; padding: 48px 0 64px; }
body#password #main .page-header { margin: 0 0 32px; text-align: left; }
body#password #main .page-header h1 {
  color: var(--vvp-customer-ink); font-size: 40px; font-weight: 600; line-height: 48px;
}
body#password #main .page-header::after { content: none; }
body#password .password-eyebrow { margin: 0 0 12px; color: var(--vvp-ds-accentText); font-size: 14px; line-height: 20px; font-weight: 600; }
body#password .password-description { margin: 12px 0 0; color: var(--vvp-customer-muted); font-size: 16px; line-height: 24px; }
body#password #main > #content { max-width: none; margin: 0; padding: 24px; border-radius: var(--vvp-ds-radius-panel); box-shadow: none; }
body#password .forgotten-password { padding: 0; }
body#password .forgotten-password .center-email-fields { display: grid; grid-template-columns: 1fr; gap: 12px; }
body#password .forgotten-password .form-control-label { margin: 0 !important; text-align: left; }
body#password .forgotten-password .email::before { content: none; display: none; }
body#password .forgotten-password .email input { height: 48px; padding: 11px 16px; }
body#password .forgotten-password .form-control-submit { min-height: 48px; height: auto; border-radius: var(--vvp-radius-pill); }
body#password .page-footer { margin: 24px auto 0; max-width: 640px; }
body#password .page-footer .password-back-link { background: transparent; border: 0; border-radius: 8px; color: var(--vvp-ds-accentText); }
body#password .page-footer .password-back-link:hover { background: var(--vvp-customer-support); color: var(--vvp-customer-ink); }
@media (max-width: 767.98px) {
  body#password #main { padding: 32px 0 48px; }
  body#password #main .page-header h1 { font-size: 28px; line-height: 36px; }
  body#password #main > #content { padding: 20px; }
}

body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking)
:is(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--vvp-customer-accent);
  outline-offset: 3px;
}

@media (max-width: 1279px) {
  body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #wrapper > .container-fluid {
    padding-right: 32px;
    padding-left: 32px;
  }
}

@media (max-width: 767.98px) {
  body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #main {
    padding: 32px 0 48px;
  }
}

@media (max-width: 767.98px) {
  body:is(.page-authentication, .page-registration, .page-password) #main > #content {
    padding: 20px; border-radius: 12px;
  }
}

body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking)
:is(.customer-panel, .customer-form-card, .customer-addresses-panel, .customer-address-form-panel, .customer-order-detail-summary, .customer-order-card, .customer-order-product, .customer-order-address-card, .customer-voucher-card, .customer-return-card, .address) {
  background: #fff;
  border-color: var(--vvp-ds-line);
  box-shadow: none;
}

@media (max-width: 767.98px) {
  body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #wrapper > .container-fluid {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 767.98px) {
  body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #main > .page-header {
    margin-bottom: 24px;
    text-align: left;
  }
}

@media (max-width: 767.98px) {
  body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #main > .page-header h1 {
    font-size: 28px;
    line-height: 36px;
  }
}

@media (max-width: 479.98px) {
  body:is(.page-authentication, .page-registration, .page-password, .page-guest-tracking) #wrapper > .container-fluid {
    padding-right: 16px;
    padding-left: 16px;
  }
}
