/* ============================================================
   DES eShop - Registration page
   Loaded only by Themes/Pioneer/Views/Customer/Register.cshtml.
   Everything is scoped under .des-reg so the Pioneer theme's own
   .registration-page / .fieldset / .inputs rules can't leak in.

   Palette is the store's own, not the mockup's: #55cbce is the
   Pioneer theme's primary (Themes/Pioneer/Content/css/styles.css
   uses it ~93 times - header bar, .button-1, links), and #f3f3f3
   is its light surface. Keeping to them makes the page read as
   part of the site instead of a bolt-on.
   ============================================================ */

.html-registration-page .page.registration-page > .page-title {
    display: none;   /* the hero below carries the heading instead */
}

.html-registration-page .page.registration-page .page-body {
    margin: 0;
    padding: 0;
}

.des-reg {
    box-sizing: border-box;
    max-width: 820px;
    margin: 0 auto;
    font-size: 15px;
    color: #1d1d1d;
}

.des-reg *,
.des-reg *::before,
.des-reg *::after {
    box-sizing: border-box;
}

/* ===== HERO ===== */
.des-reg-hero {
    padding: 34px 38px 30px;
    background: var(--erp-fulfillment-bg);
    color: #fff;
}

.des-reg-hero-eyebrow {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
}

.des-reg-hero h1 {
    margin: 0 0 14px;
    padding: 0;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.18;
    color: #fff;
    text-align: left;
    text-transform: none;
    border: none;
    background: none;
}

.des-reg-hero-sub {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
}

.des-reg-benefits {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.des-reg-benefits li {
    position: relative;
    margin: 0 0 9px;
    padding-left: 26px;
    font-size: 16px;
    line-height: 1.4;
    color: #fff;
}

/* tick drawn in CSS so the hero needs no image request */
.des-reg-benefits li::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 4px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.des-reg-hero-signin {
    margin: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
}

.des-reg-hero-signin a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
}

.des-reg-hero-signin a:hover {
    color: #fff;
    opacity: 0.85;
}

/* ===== FORM PANEL ===== */
.des-reg-panel {
    padding: 34px 38px 40px;
    background: #f3f3f3;
}

.des-reg-panel h2 {
    margin: 0 0 4px;
    padding: 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: #14141a;
    text-align: left;
    text-transform: none;
    border: none;
    background: none;
}

.des-reg-panel-sub {
    margin: 0 0 20px;
    font-size: 15px;
    color: #6b6f77;
}

/* ===== TABS ===== */
.des-reg-tabs {
    display: flex;
    margin: 0 0 26px;
    background: #e4e4e4;
    border-radius: 3px;
    overflow: hidden;
}

.des-reg-tab {
    flex: 1 1 0;
    padding: 14px 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: #6b6b6b;
    text-align: center;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.des-reg-tab:hover:not(.is-active):not(:disabled) {
    color: #55cbce;
}

    .des-reg-tab.is-active {
        background: #fff;
        color: #55cbce;
        box-shadow: inset 0 -3px 0 #55cbce;
    }

.des-reg-tab:disabled {
    color: #b0b0b0;
    cursor: not-allowed;
}

/* ===== FIELDS ===== */
.des-reg-row {
    display: flex;
    gap: 18px;
}

.des-reg-row > .des-reg-field {
    flex: 1 1 0;
    min-width: 0;
}

.des-reg-field {
    margin: 0 0 18px;
}

/* Label and input metrics are copied from the theme's own `.inputs label` and global
   input rule (styles.css:663 and :212) so these fields are the same size as every
   other form on the site. */
.des-reg-field > label {
    display: block;
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: #333;
}

.des-reg-field input[type="text"],
.des-reg-field input[type="email"],
.des-reg-field input[type="password"],
.des-reg-field input[type="tel"],
.des-reg-field input[type="number"],
.des-reg-field select {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 10px;
    font-size: 17px;
    line-height: 42px;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.des-reg-field select {
    line-height: normal;
}

.des-reg-field input:focus,
.des-reg-field select:focus {
    border-color: #55cbce;
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 48, 164, 0.15);
}

.des-reg-hint {
    display: block;
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.4;
    color: #74787f;
}

/* validation text from asp-validation-for */
.des-reg-field .field-validation-error,
.des-reg .message-error {
    display: block;
    margin: 6px 0 0;
    font-size: 14px;
    color: #c0392b;
}

.des-reg .message-error:empty {
    display: none;
}

/* With asp-validation-summary the div is never empty - when the post is clean ASP.NET still
   renders an empty <ul> and marks it validation-summary-valid, which would show as a bare red
   box. Hide that state, and give the populated one a readable list. */
.des-reg .message-error.validation-summary-valid {
    display: none;
}

.des-reg .message-error.validation-summary-errors {
    margin: 0 0 18px;
    padding: 14px 16px;
    background: #fdf2f1;
    border: 1px solid #e9b8b2;
    border-radius: 3px;
}

.des-reg .message-error ul {
    margin: 0;
    padding: 0 0 0 18px;
    list-style: disc;
}

.des-reg .message-error li {
    margin: 0 0 4px;
}

.des-reg .message-error li:last-child {
    margin-bottom: 0;
}

.des-reg-field .input-validation-error {
    border-color: #c0392b;
}

/* ===== EMAIL VERIFICATION ===== */
/* Email box and its Verify button sit on one line; the button keeps the input's 44px height so
   the pair reads as a single control. */
.des-reg-verify-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.des-reg-verify-row > input {
    flex: 1 1 auto;
    min-width: 0;
}

.des-reg-verify-btn {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 600;
    line-height: 42px;
    color: #55cbce;
    background: #fff;
    border: 1px solid #55cbce;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.des-reg-verify-btn:hover:not(:disabled),
.des-reg-verify-btn:focus:not(:disabled) {
    background: #55cbce;
    color: #fff;
    outline: none;
}

.des-reg-verify-btn:disabled {
    color: #9b9b9b;
    border-color: #ccc;
    cursor: not-allowed;
}

/* replaces the button once the code has been confirmed */
.des-reg-verified {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 600;
    color: #2e7d4f;
    background: #eaf6ef;
    border: 1px solid #b6ddc5;
    border-radius: 6px;
}

.des-reg-otp-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin: 10px 0 0;
}

.des-reg-otp-row > input {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    padding: 0 10px;
    font-size: 17px;
    letter-spacing: 4px;
    color: #333;
    background: #fff;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
}

.des-reg-otp-row > input:focus {
    border-color: #55cbce;
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 48, 164, 0.15);
}

.des-reg-otp-confirm {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 22px;
    font-size: 15px;
    font-weight: 600;
    line-height: 42px;
    color: #fff;
    background: #55cbce;
    border: 1px solid #55cbce;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.des-reg-otp-confirm:hover:not(:disabled),
.des-reg-otp-confirm:focus:not(:disabled) {
    background: #55cbce;
    color: #fff;
    outline: none;
}

.des-reg-otp-confirm:disabled {
    background: #9b8fc4;
    border-color: #9b8fc4;
    cursor: not-allowed;
}

/* wrong-code / cooldown text, shown in the same slot as "Code sent to ..." */
.des-reg-hint.des-reg-otp-error {
    color: #b5651d;
}

@media (max-width: 620px) {
    .des-reg-verify-row,
    .des-reg-otp-row {
        display: block;
    }

    .des-reg-verify-btn,
    .des-reg-verified,
    .des-reg-otp-confirm {
        width: 100%;
        margin-top: 10px;
    }

    .des-reg-otp-row > input {
        width: 100%;
    }
}

/* ===== SECTION DIVIDER ("Business details" / "Link your account") ===== */
.des-reg-divider {
    margin: 26px 0 18px;
    padding: 20px 0 0;
    border-top: 1px dashed #d4d4d4;
}

.des-reg-divider-title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: #3b3f46;
}

.des-reg-divider-note {
    margin: -6px 0 18px;
    font-size: 16px;
    line-height: 1.4;
    color: #22252b;
}

/* ===== CONSENT ===== */
.des-reg-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 22px 0 18px;
    font-size: 15px;
    line-height: 1.45;
    color: #4a4e56;
}

.des-reg-consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin: 2px 0 0;
}

.des-reg-consent label {
    margin: 0;
    font-weight: 400;
}

.des-reg-consent a,
.des-reg-consent .read {
    color: #55cbce;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.des-reg-consent a:hover,
.des-reg-consent .read:hover {
    text-decoration: underline;
}

/* ===== SUBMIT ===== */
.des-reg-submit {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    font-size: 17px;
    font-weight: 700;
    line-height: 50px;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: var(--erp-fulfillment-bg);
    border: 1px solid #55cbce;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.des-reg-submit:hover,
.des-reg-submit:focus {
    background: #55cbce;
    border-color: #55cbce;
    color: #fff;
    outline: none;
}

/* ===== REGISTRATION RESULT ===== */
/* The theme hides this page's buttons (styles.css: .registration-result-page .buttons), so the
   Continue link is rebuilt here under our own classes rather than fought with !important. */
.html-registration-result-page .page.registration-result-page > .page-title {
    display: none;
}

.des-reg-result {
    padding: 44px 38px 40px;
    background: #f3f3f3;
    text-align: center;
}

.des-reg-result-text {
    margin: 0 0 28px;
    font-size: 20px;
    line-height: 1.5;
    color: #22252b;
}

.des-reg-result-continue {
    display: inline-block;
    width: auto;
    min-width: 260px;
    text-decoration: none;
}

.des-reg-result-continue:hover,
.des-reg-result-continue:focus {
    color: #fff;
    text-decoration: none;
}

@media (max-width: 620px) {
    .des-reg-result {
        padding: 30px 20px 28px;
    }

    .des-reg-result-continue {
        width: 100%;
        min-width: 0;
    }
}

/* ===== EXTRAS (captcha / newsletter / customer attributes / external auth) ===== */
.des-reg-extras .inputs {
    margin: 0 0 14px;
}

.des-reg-extras label {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.des-reg-extras ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.des-reg-extras ul li {
    margin: 0 0 8px;
}

/* The theme gives .external-authentication a white card (styles.css: background + padding), which
   shows as an empty white bar under the submit button whenever no external login provider is
   enabled - the usual case here. Strip the card; any provider buttons still render, just directly
   on the panel. :empty is not enough on its own because the view component emits whitespace. */
.des-reg .external-authentication {
    margin: 0;
    padding: 0;
    background: none;
    border-radius: 0;
}

.des-reg .external-authentication:not(:empty) {
    margin: 22px 0 0;
}

/* Same empty white bar on the login page, which renders the block the same way */
.html-login-page .external-authentication {
    padding: 0;
    background: none;
    border-radius: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 620px) {
    .des-reg-hero {
        padding: 26px 20px 24px;
    }

    .des-reg-hero h1 {
        font-size: 27px;
    }

    .des-reg-panel {
        padding: 26px 20px 32px;
    }

    .des-reg-row {
        display: block;
    }

    .des-reg-tab {
        padding: 12px 4px;
        font-size: 14px;
    }
}
