.ca-auth-wrap{
  width: 100%;
  min-height: calc(100vh - var(--header-offset));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  box-sizing: border-box;
}

.ca-container{
  width: 450px;
  max-width: 100%;
  margin: 0;              
  padding: 0 30px;
  background: var(--surface-primary);
  border: none;
  box-shadow: none;
  font-family: var(--font-body);
  transform: translateY(-40px);
}

.ca-container h1 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 400;
  text-align: center;
  margin-top: 0px;
  margin-bottom: 40px; 
}

.ca-container form input[type="text"],
.ca-container form input[type="tel"],
.ca-container form input[type="email"],
.ca-container form input[type="password"],
.ca-container form input[type="date"] {
  width: 100%;
  padding: 8px 0;
  margin-bottom: 12px;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  background: transparent;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  font-synthesis: style weight;
  box-sizing: border-box;
  color: var(--text-secondary);
}

form#ca_login_form input[type="password"] {
  margin-bottom: 2px;
}

.ca-container form input:focus {
  outline: none;
  border-bottom: 2px solid var(--border-subtle) !important;
}

.ca-container form input:-webkit-autofill,
.ca-container form input:-webkit-autofill:hover,
.ca-container form input:-webkit-autofill:focus,
.ca-container form input:autofill {
  -webkit-text-fill-color: var(--text-secondary);
  caret-color: var(--text-secondary);
  box-shadow: 0 0 0 1000px var(--surface-primary) inset;
  -webkit-box-shadow: 0 0 0 1000px var(--surface-primary) inset;
  border-bottom-color: var(--border-subtle) !important;
  transition: background-color 9999s ease-out 0s;
}

.ca-container .login-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;  
}

.ca-container .login-footer p {
  margin-top: 20px;
  padding: 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 300;
  font-synthesis: style weight;
}

.ca-container .login-password {
  position: relative;
  
  width: 100%;
  margin-bottom: 0 !important;
}

.ca-container .login-password input {
  width: 100%;
  
  padding-right: 120px;
  box-sizing: border-box;
}

.ca-container .login-password .pwd-forgot {
  position: absolute;
  right: 10px;          
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 300;
  font-synthesis: style weight;
  text-decoration: none;
  background-color: var(--surface-primary);
}

.checkbox-text label{
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  font-synthesis: style weight;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checkbox-text label a{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox-text {
    margin: 0; 
}

.checkbox-text input[type="checkbox"] {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 3px;           
  background-color: var(--surface-primary);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.checkbox-text input[type="checkbox"]:checked {
  background-color: var(--text-secondary);
  border-color: var(--text-secondary);
}

.checkbox-text input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 3px;
  height: 7px;
  border: solid var(--text-inverse);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.checkbox-text input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--text-secondary) 14%, transparent);
}

.ca-container form button {
  width: 100%;
  height: 35px;
  padding: 0 !important;
  margin-top: 16px;
  background: var(--text-primary);
  color: var(--text-inverse);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  border: 1px solid var(--text-inverse);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.ca-container form button:not(:disabled):hover {
  background: var(--surface-primary);
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.ca-container > p:last-of-type {
  text-align: center;
  margin-top: 24px;
  margin-bottom: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  font-synthesis: style weight;
  color: var(--text-primary);
}

.ca-container > p:last-of-type a {
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
}

form#ca_register_form input {
    margin-bottom: 40px;
}

form#ca_resetpass_form input {
    margin-bottom: 40px;
}

form#ca_register_form .ca-password-wrap,
form#ca_resetpass_form .ca-password-wrap {
  margin-bottom: 40px;
}

form#ca_register_form .ca-password-wrap input,
form#ca_resetpass_form .ca-password-wrap input {
  margin-bottom: 0;
}

form#ca_resetpass_form input[type="hidden"] {
  margin-bottom: 0;
}

form#ca_register_form input[type="checkbox"] {
  margin-bottom: 0;
}

form#ca_register_form .checkbox-text label {
    font-style: normal;
}

form#ca_register_form .checkbox-text {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;

}

form#ca_register_form .checkbox-copy {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  font-style: normal;
  font-synthesis: style weight;
  color: var(--text-primary);
  line-height: 1.35;
}

form#ca_register_form .checkbox-copy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

form#ca_register_form .checkbox-text.has-error {
    margin-bottom: 8px;
}

form#ca_register_form .checkbox-text.has-error input[type="checkbox"] {
  border-color: var(--status-error);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--status-error) 12%, transparent);
}

.ca-login-error {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  font-size: 11.5px;
  font-family: var(--font-body);
  color: var(--status-error);
  margin-left: 5px;
}

.ca-login-error .error-icon {
  width: 14px;
  height: 14px;
  margin-right: 8px;
}

.ca-login-error .error-icon{ width:16px; height:16px; }
.ca-field-error{
  align-items: flex-start;
  margin: -28px 0 18px;
  margin-left: 0;
  font-size: 12px;
  font-family: var(--font-body);
  line-height: 1.35;
}

.ca-terms-error {
  margin: 0 auto 18px;
  width: fit-content;
  max-width: 100%;
  text-align: left;
}

.ca-success{
  background:color-mix(in srgb, var(--status-success) 10%, var(--surface-primary));
  border:1px solid color-mix(in srgb, var(--status-success) 50%, var(--surface-primary));
  color:var(--status-success);
  padding:12px;
  border-radius:8px;
  margin:8px 0
}

.ca-auth-message{
  width: 100%;
  margin: 0 0 28px;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  border-left-width: 3px;
  box-shadow: var(--shadow-subtle);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-align: left;
}

.ca-auth-message--success{
  background: color-mix(in srgb, var(--status-success) 8%, var(--surface-primary));
  border-color: color-mix(in srgb, var(--status-success) 35%, var(--surface-primary));
  color: var(--status-success);
}

.ca-auth-message--error{
  background: color-mix(in srgb, var(--status-error) 8%, var(--surface-primary));
  border-color: color-mix(in srgb, var(--status-error) 35%, var(--surface-primary));
  color: var(--status-error);
}

.ca-throttle-countdown{
  display: inline-block;
  min-width: 3.75ch;
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.ca-pass-hint{
  font-size: 12px;
  margin-top: -28px;
  margin-bottom: 18px;
  display:none; 
}

.ca-pass-hint + .ca-password-error {
  margin-top: -28px;
}

.ca-pass-hint.is-active + .ca-password-error {
  margin-top: 8px;
}

.la-profile .ca-pass-hint{
  margin-top: 10px;
  margin-bottom: 0;
}

.la-profile .ca-password-wrap input{
  padding-right: 44px !important;
}

.la-profile .ca-pass-toggle{
  right: 8px;
}

.ca-password-wrap{
  position: relative;
  margin: 0;
}

.ca-password-wrap input{
  padding-right: 36px !important;
}

.ca-pass-toggle{
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  cursor: pointer;
  background-image: url('https://www.lalousi.com/wp-content/uploads/2025/08/show.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}
.ca-pass-toggle.shown{
  background-image: url('https://www.lalousi.com/wp-content/uploads/2025/08/no-show.png');
}

button.ca-pass-toggle{ all: unset; }

.ca-pass-reqs{
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ca-pass-reqs .req{
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.35;
  color: var(--status-error);
}
.ca-pass-reqs .req .icon{ display:inline-flex; width:10px; justify-content:center; transform:translateY(-1px); }
.ca-pass-reqs .req.bad .icon{ color:var(--status-error); }
.ca-pass-reqs .req.bad .label{ color:var(--status-error); }
.ca-pass-reqs .req.ok .icon{ color:var(--status-success); }
.ca-pass-reqs .req.ok .label{ color:var(--status-success); }
.ca-pass-reqs .req.ok  .icon::before{ content:'✓'; }
.ca-pass-reqs .req.bad .icon::before{ content:'•'; }

.ca-container form input.ca-input-error{
  border-bottom-color: var(--status-error);
  border-bottom-width: 2px;
}

.ca-container form input.ca-input-error:focus{
  border-bottom-color: var(--status-error) !important;
}

#ca_login_form .login-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:6px;
  margin-bottom:16px;
}
#ca_login_form .login-footer p{ margin:0; padding:0; }
#ca_login_form .login-footer .pwd-forgot{
  font-size:13px;
  font-family:var(--font-body);
  font-style:italic;
  font-weight:300;
  font-synthesis:style weight;
  text-decoration:none;
  color:inherit;
}

#ca_login_form #user_pass_login{ margin-bottom:2px !important; }

#ca_login_form .login-password input{ padding-right:40px !important; }

/* Runtime dark theme: custom-auth has its own standalone stylesheet, so it
 * needs explicit text and raster-icon contrast rather than relying on the
 * page's inherited light colours. */
html[data-theme="dark"] .ca-container {
  background-color: var(--surface-primary) !important;
  color: var(--text-primary) !important;
}

html[data-theme="dark"] .ca-container :is(h1, p, label, a, .checkbox-copy, .ca-pass-hint, .ca-pass-reqs) {
  color: var(--text-primary) !important;
}

html[data-theme="dark"] .ca-container :is(.pwd-forgot, .ca-pass-hint, .ca-pass-reqs) {
  color: var(--text-secondary) !important;
}

html[data-theme="dark"] .ca-container form :is(input[type="text"], input[type="tel"], input[type="email"], input[type="password"], input[type="date"]) {
  border-bottom-color: var(--border-subtle) !important;
  color: var(--text-primary) !important;
}

html[data-theme="dark"] .ca-container form input::placeholder {
  color: var(--text-secondary) !important;
  opacity: 1;
}

html[data-theme="dark"] .ca-pass-toggle {
  filter: brightness(0) invert(1);
}

/* Lost/reset-password return links share the regular account-action style. */
.ca-container .custom-auth-submit > a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
}

@media (max-width: 767px) {

  
  .ca-auth-wrap{
    min-height: calc(100vh - var(--header-offset, 50px)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
  }

  
  .ca-container{
    min-height: 0 !important;          
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px 16px 32px !important;
  }

  
  .ca-container * {
    box-sizing: border-box;
    max-width: 100%;
  }

  
  .ca-container h1 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
  }

  
  .ca-container form input[type="text"],
  .ca-container form input[type="tel"],
  .ca-container form input[type="email"],
  .ca-container form input[type="password"],
  .ca-container form input[type="date"] {
    font-size: 16px;
  }

  
  .ca-password-wrap input {
    padding-right: 40px !important;
  }
  .ca-pass-toggle {
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: 18px 18px;
  }

  
  .ca-container .login-footer,
  #ca_login_form .login-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    margin-top: 10px;
    margin-bottom: 16px;
  }

  .ca-container .login-footer p,
  #ca_login_form .login-footer p {
    margin: 0;
    padding: 0;
  }

  #ca_login_form .login-footer .pwd-forgot {
    align-self: auto;
    margin-top: 0;
    font-size: 12px;
    white-space: nowrap;
  }

  
  .checkbox-text label {
    font-size: 12px;
  }

  
  .ca-container form button {
    height: 42px;
    font-size: 15px;
    margin-top: 18px;
  }

  
  .ca-container > p:last-of-type,
  .ca-container > p:last-of-type a {
    font-size: 13px;
  }

  form#ca_register_form .checkbox-copy {
    font-size: 12px;
  }

  .ca-container .custom-auth-submit > a {
    font-size: 13px;
  }

  
  .ca-login-error {
    font-size: 11px;
    margin-left: 0;
  }

  .ca-pass-reqs .req {
    font-size: 12px;
  }
  .checkbox-text label {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.35;
  white-space: normal !important;
  }

.checkbox-text input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  }

}


