/* Hollands Web Client Portal — logged-out Login / Register experience (v0.4) */
.hwcp-auth-active {
    --hwcp-auth-primary: var(--hwcp-primary, #4338ca);
    --hwcp-auth-primary-2: var(--hwcp-primary-2, #5b50e5);
    --hwcp-auth-ink: var(--hwcp-ink, #111329);
    --hwcp-auth-muted: var(--hwcp-muted, #6f7386);
    --hwcp-auth-border: var(--hwcp-border, #e7e8ef);
    --hwcp-auth-soft: #f8f8fc;
}

/* Keep this redesign isolated to the logged-out My Account landing page. */
.hwcp-auth-active .woocommerce {
    width: 100%;
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

/* Common theme title / breadcrumb patterns. JS also hides an exact "My account" H1. */
.hwcp-auth-active .entry-title,
.hwcp-auth-active .page-title,
.hwcp-auth-active .woocommerce-breadcrumb,
.hwcp-auth-active .breadcrumbs,
.hwcp-auth-active .breadcrumb,
.hwcp-auth-active [class*="breadcrumb"] {
    display: none !important;
}

.hwcp-auth-active .hwcp-auth-hide-title {
    display: none !important;
}

.hwcp-auth-intro {
    max-width: 760px;
    margin: 20px auto 28px;
    text-align: center;
}

.hwcp-auth-eyebrow {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--hwcp-auth-primary);
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .15em;
}

.hwcp-auth-intro h1 {
    margin: 0;
    color: var(--hwcp-auth-ink);
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -.03em;
}

.hwcp-auth-intro p {
    max-width: 620px;
    margin: 10px auto 0;
    color: var(--hwcp-auth-muted);
    font-size: 16px;
    line-height: 1.65;
}

/* Progressive-enhancement fallback: before JS runs, keep the native forms usable. */
.hwcp-auth-active #customer_login {
    width: 100%;
    margin: 0;
    padding: 0;
}

.hwcp-auth-ready #customer_login.hwcp-auth-card {
    display: grid !important;
    grid-template-columns: minmax(300px, 37%) minmax(0, 1fr);
    gap: 0;
    float: none !important;
    width: 100% !important;
    min-height: 535px;
    overflow: hidden;
    border: 1px solid var(--hwcp-auth-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(22, 27, 73, .075);
}

.hwcp-auth-side {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 48px 38px;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 12%, rgba(255,255,255,.95) 0 17%, rgba(255,255,255,0) 35%),
        linear-gradient(145deg, #fbfaff 0%, #f3f1ff 55%, #f8f7ff 100%);
    border-right: 1px solid #efedf9;
}

.hwcp-auth-side::before {
    content: '';
    position: absolute;
    width: 270px;
    height: 270px;
    right: -142px;
    top: -105px;
    border-radius: 50%;
    border: 42px solid rgba(91, 80, 229, .045);
}

.hwcp-auth-side__dots {
    position: absolute;
    left: 28px;
    top: 30px;
    width: 75px;
    height: 75px;
    opacity: .52;
    background-image: radial-gradient(circle, #8b82f2 1.5px, transparent 1.7px);
    background-size: 13px 13px;
}

.hwcp-auth-side__content {
    position: relative;
    z-index: 2;
    max-width: 280px;
    text-align: center;
}

.hwcp-auth-side__icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 23px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--hwcp-auth-primary-2), var(--hwcp-auth-primary));
    box-shadow: 0 14px 28px rgba(67, 56, 202, .22);
}

.hwcp-auth-side__icon svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hwcp-auth-side__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--hwcp-auth-primary);
    font-size: 10px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: .14em;
}

.hwcp-auth-side h2 {
    margin: 0 0 10px;
    color: var(--hwcp-auth-ink);
    font-size: 25px;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.hwcp-auth-side p {
    margin: 0;
    color: #555a70;
    font-size: 14px;
    line-height: 1.75;
}

.hwcp-auth-side__mark {
    position: absolute;
    right: 22px;
    bottom: 27px;
    display: flex;
    gap: 6px;
    transform: rotate(27deg);
}

.hwcp-auth-side__mark span {
    display: block;
    width: 7px;
    height: 36px;
    border-radius: 999px;
    background: #e8e4ff;
}

.hwcp-auth-side__mark span:nth-child(2) { height: 52px; background: #d8d3ff; }
.hwcp-auth-side__mark span:nth-child(3) { height: 42px; background: #c9c2ff; }

.hwcp-auth-main {
    min-width: 0;
    padding: 36px 44px 40px;
    background: #fff;
}

.hwcp-auth-tabs {
    display: flex;
    align-items: center;
    gap: 30px;
    min-height: 46px;
    margin-bottom: 24px;
    border-bottom: 1px solid #efeff5;
}

.hwcp-auth-tab {
    position: relative;
    align-self: stretch;
    appearance: none;
    -webkit-appearance: none;
    min-width: auto !important;
    margin: 0 !important;
    padding: 0 3px !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: #717589 !important;
    font: inherit;
    font-size: 15px;
    line-height: 46px;
    font-weight: 700;
    cursor: pointer;
    text-transform: none !important;
}

.hwcp-auth-tab::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    border-radius: 999px 999px 0 0;
    background: transparent;
    transform: scaleX(.3);
    transition: .2s ease;
}

.hwcp-auth-tab:hover,
.hwcp-auth-tab:focus-visible,
.hwcp-auth-tab.is-active {
    color: var(--hwcp-auth-primary) !important;
}

.hwcp-auth-tab:focus-visible {
    outline: 3px solid rgba(67, 56, 202, .13);
    outline-offset: 4px;
}

.hwcp-auth-tab.is-active::after {
    background: var(--hwcp-auth-primary);
    transform: scaleX(1);
}

.hwcp-auth-panels,
.hwcp-auth-panel {
    min-width: 0;
}

.hwcp-auth-panel[hidden] {
    display: none !important;
}

.hwcp-auth-ready #customer_login .hwcp-auth-panel,
.hwcp-auth-ready #customer_login .u-column1,
.hwcp-auth-ready #customer_login .u-column2,
.hwcp-auth-ready #customer_login .col-1,
.hwcp-auth-ready #customer_login .col-2 {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hwcp-auth-ready #customer_login .hwcp-auth-panel > h2 {
    display: none !important;
}

.hwcp-auth-active #customer_login form.login,
.hwcp-auth-active #customer_login form.register,
.hwcp-auth-active #customer_login .woocommerce-form-login,
.hwcp-auth-active #customer_login .woocommerce-form-register {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.hwcp-auth-active #customer_login .form-row,
.hwcp-auth-active #customer_login .woocommerce-form-row {
    margin: 0 0 20px !important;
    padding: 0 !important;
}

.hwcp-auth-active #customer_login label:not(.woocommerce-form__label-for-checkbox) {
    display: block;
    margin: 0 0 8px;
    color: var(--hwcp-auth-ink);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
}

.hwcp-auth-active #customer_login .required {
    color: #e55366;
}

.hwcp-auth-active #customer_login input[type="text"],
.hwcp-auth-active #customer_login input[type="email"],
.hwcp-auth-active #customer_login input[type="password"],
.hwcp-auth-active #customer_login input[type="tel"],
.hwcp-auth-active #customer_login input[type="number"] {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 52px;
    margin: 0 !important;
    padding: 10px 15px;
    border: 1px solid #dcdde7 !important;
    border-radius: 9px !important;
    outline: 0 !important;
    background-color: #fff !important;
    box-shadow: none !important;
    color: var(--hwcp-auth-ink) !important;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.hwcp-auth-active #customer_login #username,
.hwcp-auth-active #customer_login #reg_email {
    padding-left: 44px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23878a9d' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.4'/%3E%3Cpath d='M5.5 20c.4-4 2.6-6 6.5-6s6.1 2 6.5 6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: 19px 19px !important;
    background-position: 15px center !important;
}

.hwcp-auth-active #customer_login #password {
    padding-left: 44px !important;
    padding-right: 48px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23878a9d' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: 18px 18px !important;
    background-position: 15px center !important;
}

.hwcp-auth-active #customer_login input[type="text"]:focus,
.hwcp-auth-active #customer_login input[type="email"]:focus,
.hwcp-auth-active #customer_login input[type="password"]:focus,
.hwcp-auth-active #customer_login input[type="tel"]:focus,
.hwcp-auth-active #customer_login input[type="number"]:focus {
    border-color: var(--hwcp-auth-primary) !important;
    box-shadow: 0 0 0 4px rgba(67, 56, 202, .09) !important;
}

.hwcp-auth-active #customer_login .password-input,
.hwcp-auth-active #customer_login .woocommerce-password-strength {
    width: 100%;
}

.hwcp-auth-active #customer_login .show-password-input {
    right: 14px !important;
}

.hwcp-captcha-row {
    margin-top: 3px !important;
}

.hwcp-auth-active #customer_login input.hwcp-captcha-input {
    display: inline-block !important;
    width: 74px !important;
    min-width: 74px !important;
    max-width: 74px !important;
    min-height: 44px !important;
    height: 44px !important;
    margin: 0 7px !important;
    padding: 6px 8px !important;
    background-image: none !important;
    text-align: center;
    vertical-align: middle;
}

.hwcp-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 1px 0 22px;
    color: var(--hwcp-auth-muted);
    font-size: 13px;
}

.hwcp-login-options .woocommerce-form-login__rememberme {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    color: var(--hwcp-auth-muted) !important;
    font-size: 13px !important;
    line-height: 1.4;
    font-weight: 500 !important;
    cursor: pointer;
}

.hwcp-login-options input[type="checkbox"] {
    width: 17px !important;
    height: 17px !important;
    margin: 0 !important;
    accent-color: var(--hwcp-auth-primary);
}

.hwcp-login-options a,
.hwcp-auth-active #customer_login .lost_password a {
    color: var(--hwcp-auth-primary) !important;
    text-decoration: none !important;
    font-weight: 650;
}

.hwcp-login-options a:hover,
.hwcp-auth-active #customer_login .lost_password a:hover {
    text-decoration: underline !important;
}

.hwcp-auth-active #customer_login button[type="submit"],
.hwcp-auth-active #customer_login .button[type="submit"],
.hwcp-auth-active #customer_login .woocommerce-button[type="submit"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 52px;
    margin: 0 !important;
    padding: 12px 20px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: linear-gradient(90deg, var(--hwcp-auth-primary-2), var(--hwcp-auth-primary)) !important;
    box-shadow: 0 12px 24px rgba(67, 56, 202, .16) !important;
    color: #fff !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: .035em;
    text-transform: uppercase !important;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.hwcp-auth-active #customer_login button[type="submit"]:hover,
.hwcp-auth-active #customer_login .button[type="submit"]:hover,
.hwcp-auth-active #customer_login .woocommerce-button[type="submit"]:hover {
    transform: translateY(-1px);
    filter: brightness(1.025);
    box-shadow: 0 15px 30px rgba(67, 56, 202, .22) !important;
}

.hwcp-auth-active #customer_login button[type="submit"]:focus-visible,
.hwcp-auth-active #customer_login .button[type="submit"]:focus-visible {
    outline: 3px solid rgba(67, 56, 202, .18) !important;
    outline-offset: 3px;
}

.hwcp-auth-active #customer_login .woocommerce-privacy-policy-text,
.hwcp-auth-active #customer_login .woocommerce-privacy-policy-text p {
    color: var(--hwcp-auth-muted);
    font-size: 13px;
    line-height: 1.7;
}

.hwcp-auth-active #customer_login .woocommerce-privacy-policy-text a {
    color: var(--hwcp-auth-primary);
}

/* WooCommerce notices remain above the card and share the same visual language. */
.hwcp-auth-active .woocommerce-notices-wrapper,
.hwcp-auth-active .woocommerce-error,
.hwcp-auth-active .woocommerce-message,
.hwcp-auth-active .woocommerce-info {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

.hwcp-auth-active .woocommerce-error,
.hwcp-auth-active .woocommerce-message,
.hwcp-auth-active .woocommerce-info {
    border-radius: 12px;
    box-shadow: none;
}

.hwcp-auth-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 30px 0 8px;
    padding: 0 2px;
}

.hwcp-auth-benefit {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    min-width: 0;
}

.hwcp-auth-benefit__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid #ebe8ff;
    border-radius: 12px;
    background: linear-gradient(145deg, #fbfaff, #f2f0ff);
    color: var(--hwcp-auth-primary);
}

.hwcp-auth-benefit__icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hwcp-auth-benefit strong {
    display: block;
    margin: 2px 0 5px;
    color: var(--hwcp-auth-ink);
    font-size: 14px;
    line-height: 1.35;
}

.hwcp-auth-benefit p {
    margin: 0;
    color: var(--hwcp-auth-muted);
    font-size: 12.5px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .hwcp-auth-active .woocommerce { max-width: 820px; }
    .hwcp-auth-ready #customer_login.hwcp-auth-card { grid-template-columns: minmax(255px, 34%) minmax(0, 1fr); }
    .hwcp-auth-side { padding: 42px 28px; }
    .hwcp-auth-main { padding: 34px 34px 38px; }
    .hwcp-auth-benefits { gap: 17px; }
    .hwcp-auth-benefit { grid-template-columns: 42px 1fr; gap: 11px; }
    .hwcp-auth-benefit__icon { width: 42px; height: 42px; }
}

@media (max-width: 760px) {
    .hwcp-auth-intro { margin-top: 8px; margin-bottom: 22px; padding: 0 6px; }
    .hwcp-auth-intro h1 { font-size: 34px; }
    .hwcp-auth-intro p { font-size: 14px; }

    .hwcp-auth-ready #customer_login.hwcp-auth-card {
        display: block !important;
        min-height: 0;
        border-radius: 15px;
    }

    .hwcp-auth-side { display: none !important; }
    .hwcp-auth-main { padding: 28px 24px 30px; }
    .hwcp-auth-tabs { margin-bottom: 23px; }
    .hwcp-auth-benefits { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
    .hwcp-auth-benefit { padding: 0 8px; }
}

@media (max-width: 480px) {
    .hwcp-auth-main { padding: 24px 18px 26px; }
    .hwcp-auth-tabs { gap: 24px; }
    .hwcp-login-options { align-items: flex-start; flex-direction: column; gap: 11px; }
    .hwcp-auth-active #customer_login input.hwcp-captcha-input { width: 66px !important; min-width: 66px !important; max-width: 66px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .hwcp-auth-active *,
    .hwcp-auth-active *::before,
    .hwcp-auth-active *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* WooCommerce's legacy clearfix pseudo-elements become grid items in the
   modern auth card. Disable them only on the logged-out auth landing. */
.hwcp-auth-active .woocommerce .col2-set::before,
.hwcp-auth-active .woocommerce .col2-set::after,
.hwcp-auth-active.woocommerce-page .col2-set::before,
.hwcp-auth-active.woocommerce-page .col2-set::after {
    content: none !important;
    display: none !important;
}
