/* Auth pages shared styles — SSOT for SignIn, SignUp, ForgotPassword */
/* Source: Dataverse webfile register-custom.css */
/* Extracted: 2026-04-07 */

.login-page-custom .pre_header { display: none !important; }

body.login-page-custom {
  min-width: 1200px;
  /* overflow-y: scroll; */
  overflow-x: hidden;
  background-color: var(--brand-marian-blue) !important;
  background-image: url("data:image/svg+xml;utf8,<svg width='1974' height='1850' viewBox='0 0 1974 1850' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M1239.02 0L1974 1848.46L1407.35 1850L1280.83 1108.76L692.628 1109.77L567.188 1848.35L0 1848.18L734.333 1.34358L881.049 0.433413L757.188 729.693L1217.11 729.737L1093.23 0.455083L1239.02 0Z' fill='%23FFFFFF' fill-opacity='0.39'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: calc(50% + 30vw) 90% !important;
  background-size: auto 156% !important;
}

.login-page-custom .login-header { margin-top: 20px; }
.login-page-custom #content-container { min-height: calc(100vh - 612px); max-width: 1320px; margin: 0 auto; padding: 0 12px; }
.login-page-custom #content { padding: 140px 0; }
.sign-up-page.login-page-custom #content-container { padding: 140px 12px 60px; }
.sign-up-page.login-page-custom #content { padding: 0; }
.sign-up-page.login-page-custom #content-container .login-header { margin-top: 0; }

/* Tabs */
.login-page-custom .nav-tabs { border: none; }
.login-page-custom .nav-tabs .nav-item:last-of-type { border-right: none; }
.login-page-custom .nav-tabs .nav-item { border-right: 1px solid var(--brand-white); }
.login-page-custom .nav-tabs .nav-link {
  background-color: var(--brand-marian-blue);
  color: white;
  border: none;
  font-weight: 700;
  font-size: 16px;
  border-radius: 0px;
  margin-left: 0px;
  padding: 3px 14px;
}
.login-page-custom .nav-tabs .nav-link.active { background-color: var(--brand-orange-sun); }
.login-page-custom .nav-tabs .nav-item:first-of-type .nav-link { border-radius: 5px 0px 0px 5px; }
.login-page-custom .nav-tabs .nav-item:last-of-type .nav-link { border-radius: 0px 5px 5px 0px; }
.login-page-custom .nav-tabs .nav-link .fa-sign-in::before { content: none; }

/* Main layout */
.login-page-custom #mainContent {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  gap: 104px;
}
.login-page-custom #mainContent > .row { flex-direction: column; width: auto; margin: 0px; }
.login-page-custom #mainContent > .row .col-md-6 { padding: 0px; }

/* Card panel */
.login-page-custom .portal-form {
  width: 425px;
  padding: 30px;
  border-radius: 10px;
  background-color: rgba(246, 233, 224, 0.85);
  color: var(--typo-marian-blue);
}

/* SignIn-specific: "Welcome to Agents House" title via CSS ::before */
.login-page-custom form[action*="SignIn"] .portal-form::before,
.redeem-page-custom .portal-form::before,
.login-page-custom form[id="Register"] .portal-form::before {
  content: "Welcome to Agents House";
  text-transform: uppercase;
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  padding-top: 4px;
  display: inline-block;
  font-family: Satoshi;
}

.login-page-custom #local-login-heading span { font-weight: 700; font-size: 16px; line-height: 23px; }

/* Form rows */
.login-page-custom .portal-form .row.mb-3 { flex-direction: column; align-items: flex-start; gap: 10px; }
/* .login-page-custom .portal-form .row.mb-3:last-of-type { margin-bottom: 0px !important; } */
.login-page-custom .portal-form .row.mb-3:last-of-type .offset-md-4.col-md-8 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-left: 0px;
  margin-top: 8px;
}
.login-page-custom .portal-form .row.mb-3 label {
  padding: 0px 12px;
  font-size: 14px;
  line-height: 19px;
  font-weight: 500 !important;
}
.login-page-custom .portal-form .checkbox { padding: 14px 0px 0px; }
.login-page-custom .portal-form .row.mb-3 label::before { content: none; }
.login-page-custom .portal-form .row.mb-3 .col-md-8 { width: 100%; margin-left: 0px; }
.login-page-custom .portal-form .row.mb-3 label[for="Username"]::after,
.login-page-custom:not(.forgot-password-form) .portal-form .row.mb-3 label[for="Email"]::after,
.login-page-custom .portal-form .row.mb-3 label[for="PasswordValue"]::after { content: " *"; color: var(--status-red); }
.login-page-custom .portal-form .offset-md-4.col-md-8 { flex-direction: column; align-items: flex-start; }
.login-page-custom .portal-form label { text-align: left; }

/* Heading section */
.login-page-custom .login-heading-section { border: none; margin: 0px; padding: 26px 0px 30px; }

/* Form controls */
.login-page-custom .form-control {
  min-height: 50px;
  border-radius: 20px;
  font-weight: 500;
  color: var(--typo-marian-blue);
  padding: 12px 20px;
  border: none !important;
}
.login-page-custom .form-control::placeholder { color: var(--secondary-grey) !important; }
.login-page-custom .form-control:focus { box-shadow: none !important; }

/* Buttons */
.login-page-custom .btn-primary {
  height: 50px;
  width: 100%;
  border-radius: 30px;
  background-color: var(--brand-orange-sun);
  border: none;
  color: var(--brand-white);

  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 10px;
}
.login-page-custom .btn-primary:hover { background-color: var(--brand-marian-blue); color: white; }
.login-page-custom .btn.btn-default {
  border: none;
  color: var(--brand-marian-blue);
  padding: 0px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
}
.login-page-custom .btn.btn-default:hover { color: var(--brand-orange-sun); background: none; }

.login-page-custom .button2:not(.gjs-selected):active,
.login-page-custom .button2.active:not(.gjs-selected),
.login-page-custom .btn-secondary:not(.gjs-selected):active,
.login-page-custom .btn-secondary.active:not(.gjs-selected),
.login-page-custom .btn-default:not(.gjs-selected):active,
.login-page-custom .btn-default.active:not(.gjs-selected),
.login-page-custom .button2:focus,
.login-page-custom .button2.focus,
.login-page-custom .btn-secondary:focus,
.login-page-custom .btn-secondary.focus,
.login-page-custom .btn-default:focus,
.login-page-custom .btn-default.focus {
  background-color: transparent;
  color: var(--typo-marian-blue);
}

/* External login section */
.login-page-custom .row .col-md-6 div:has(#external-login-heading) {
  margin-top: 20px;
  width: 425px;
  padding: 30px;
  border-radius: 10px;
  background-color: rgba(246, 233, 224, 0.85);
  color: var(--typo-marian-blue);
}
.login-page-custom #external-login-heading { padding-top: 0px; }

/* Side content (truck + text) */
.login-page-custom #mainContent > .page-copy { flex-basis: 100%; flex-shrink: 100; }
.login-page-custom .truck-header-text {
  width: 360px;
  font-size: 36px;
  line-height: 49px;
  color: var(--secondary-sandy);
  margin-bottom: 0px;
}
.login-page-custom .truck-image-container { position: relative; }
.login-page-custom .truck-image-container img { position: absolute; top: -26px; }
.login-page-custom #mainContent .page-copy > .xrm-attribute-value { display: flex; flex-direction: column; }

/* Checkbox */
.login-page-custom .checkbox input { display: none; }
.login-page-custom .portal-form .row.mb-3 .checkbox label,
.login-page-custom .checkbox label { padding: 0px; }
.login-page-custom .portal-form .row.mb-3 .checkbox label span,
.login-page-custom .checkbox label span { display: flex; align-items: center; }
.login-page-custom .checkbox input[type="checkbox"] ~ span::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 11px;
  background-color: var(--brand-white);
  border: 1px solid var(--secondary-pink);
  border-radius: 2px;
}
.login-page-custom .checkbox input[type="checkbox"]:checked ~ span::before {
  background-size: 90%;
  background-position: 60% 60%;
  background-color: var(--secondary-sandy);
  border-color: var(--brand-marian-blue);
  background-image: url("data:image/svg+xml;utf8,<svg width='16' height='11' viewBox='0 0 16 11' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M0.75 4.73769L5.538 9.39L14.43 0.75' stroke='%23FD7119' stroke-width='1.5' stroke-linecap='round'/></svg>") !important;
  background-repeat: no-repeat !important;
}

/* Forgot password */
.login-page-custom .forgot-password-heading {
  border: none;
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  color: var(--typo-marian-blue);
  font-family: var(--main-font-family) !important;
}

.forgot-password-heading, .forgot-password-heading span {
    outline: none;
}

.login-page-custom.forgot-password-form #mainContent .row.mb-3:has(label[for="Email"])::before {
  content: "To reset your password, please enter your email address";
  display: block;
  font-weight: 700;
  font-size: 16px;
  line-height: 23px;
  padding: 18px 12px;
}
.login-page-custom.forgot-password-form #mainContent label[for="Email"] { width: 100%; }
.login-page-custom.forgot-password-form #mainContent label[for="Email"] span span::after { content: " *"; color: var(--status-red); }
.login-page-custom.forgot-password-form #mainContent .col-md-10 { width: 100%; margin: 0px; }
.login-page-custom.forgot-password-form #mainContent .form-text { display: none; }
.login-page-custom.forgot-password-form #mainContent #submit-forgot-password { margin-top: 14px; }

/* Footer */
.login-page-custom footer { box-shadow: rgba(0, 0, 0, 0.2) 0px -40px 30px -50px; }

/* Forgot password confirmation */
.login-page-custom.forgot-password-email #mainContent div:has(.forgot-password-heading) {
  padding: 30px;
  border-radius: 10px;
  background-color: rgba(246, 233, 224, 0.85);
  font-weight: 500;
}
.login-page-custom.forgot-password-email #mainContent div:has(.forgot-password-heading) .alert.alert-info {
  background-color: transparent;
  border: none;
  padding: 0px;
  color: var(--brand-marian-blue);
}

/* Portal auth: field-level error helper text (injected by PageCopy JS) */
.login-page-custom .portal-field-error {
    display: block;
    color: var(--status-red);
    font: var(--semibold-font-cell);
    margin-top: 4px;
    max-width: 400px;
}
.login-page-custom #loginValidationSummary {
    display: none !important;
}
.login-page-custom #redeemInvitation-validation-summary {
    display: none !important;
}

label[for="InvitationCode"],
label[for="ConfirmPasswordTextBox"] {
  width: 100%;
}

form[action="/Account/Login/ResetPassword"] fieldset,
div.form-horizontal fieldset {
  padding: 30px;
  border-radius: 10px;
  background-color: rgba(246, 233, 224, 0.85);
  color: var(--typo-marian-blue);
  display: flex;
  flex-direction: column;
  row-gap: 15px;
}

form[action="/Account/Login/ResetPassword"] span,
div.form-horizontal legend span {
  color: var(--typo-marian-blue);
}

form[action="/Account/Login/ResetPassword"] div {
  padding: 0 !important;
  margin: 0 !important;
}

form[action="/Account/Login/ResetPassword"] div:has(button[id="submit-reset-password"]) {
  width: 100%;
}

div.portal-form div.row.mb-3 div.offset-md-2.col-md-10,
div.portal-form div.row.mb-3 div.col-md-10 {
  margin-left: 0;
  width: 100%;
}

form[action="/Account/Login/ResetPassword"] .validation-summary-errors {
  display: none !important;
}

body:has(form[action*="/Account/Login/ResetPasswordConfirmation"]) .alert-success,
.alert-success.password-reset-success {
  background-color: transparent !important;
  border-color: transparent !important;
  color: inherit !important;
}
