/* Hollands Web Client Portal — Lost Password / Set Password (v0.4.1) */
.hwcp-recovery-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-recovery-active .woocommerce {
    width: 100%;
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

/* Hide the theme's generic account title and breadcrumb only on recovery. */
.hwcp-recovery-active .entry-title,
.hwcp-recovery-active .page-title,
.hwcp-recovery-active .woocommerce-breadcrumb,
.hwcp-recovery-active .breadcrumbs,
.hwcp-recovery-active .breadcrumb,
.hwcp-recovery-active [class*="breadcrumb"],
.hwcp-recovery-active .hwcp-recovery-hide-title {
    display: none !important;
}

.hwcp-recovery-intro {
    max-width: 760px;
    margin: 20px auto 28px;
    padding: 0 10px;
    text-align: center;
}

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

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

.hwcp-recovery-ready .hwcp-recovery-card {
    display: grid;
    grid-template-columns: minmax(300px, 37%) minmax(0, 1fr);
    width: 100%;
    min-height: 500px;
    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-recovery-main {
    display: flex;
    min-width: 0;
    align-items: center;
    padding: 50px 58px;
    background: #fff;
}

.hwcp-recovery-form {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.hwcp-recovery-form > p:first-child:not(.form-row):not(.woocommerce-form-row) {
    margin: 0 0 28px !important;
    color: var(--hwcp-auth-muted);
    font-size: 14px;
    line-height: 1.7;
}

.hwcp-recovery-form .form-row,
.hwcp-recovery-form .woocommerce-form-row,
.hwcp-recovery-form .form-row-first,
.hwcp-recovery-form .form-row-last {
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
}

.hwcp-recovery-form .clear {
    display: none !important;
}

.hwcp-recovery-form label {
    display: block;
    margin: 0 0 8px;
    color: var(--hwcp-auth-ink);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
}

.hwcp-recovery-form .required {
    color: #e55366;
}

.hwcp-recovery-form input[type="text"],
.hwcp-recovery-form input[type="email"],
.hwcp-recovery-form input[type="password"],
.hwcp-recovery-form input[type="number"] {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 52px;
    margin: 0 !important;
    padding: 10px 15px !important;
    border: 1px solid #dcdde7 !important;
    border-radius: 9px !important;
    outline: 0 !important;
    background: #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;
}

.hwcp-recovery-form #password_1,
.hwcp-recovery-form #password_2 {
    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-recovery-form #user_login {
    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-recovery-form input[type="text"]:focus,
.hwcp-recovery-form input[type="email"]:focus,
.hwcp-recovery-form input[type="password"]:focus,
.hwcp-recovery-form input[type="number"]:focus {
    border-color: var(--hwcp-auth-primary) !important;
    box-shadow: 0 0 0 4px rgba(67, 56, 202, .09) !important;
}

.hwcp-recovery-form .password-input,
.hwcp-recovery-form .woocommerce-password-strength,
.hwcp-recovery-form .woocommerce-password-hint {
    width: 100%;
}

.hwcp-recovery-form .show-password-input {
    right: 14px !important;
}

.hwcp-recovery-form .woocommerce-password-strength {
    box-sizing: border-box;
    margin-top: 8px;
    border-radius: 7px;
    font-size: 12px;
}

.hwcp-recovery-active .hwcp-recovery-form 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-recovery-form button[type="submit"],
.hwcp-recovery-form .button[type="submit"],
.hwcp-recovery-form .woocommerce-Button[type="submit"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 52px;
    margin: 2px 0 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-recovery-form button[type="submit"]:hover,
.hwcp-recovery-form .button[type="submit"]:hover {
    transform: translateY(-1px);
    filter: brightness(1.025);
    box-shadow: 0 15px 30px rgba(67, 56, 202, .22) !important;
}

.hwcp-recovery-back {
    margin: 18px 0 0;
    text-align: center;
}

.hwcp-recovery-back a {
    color: var(--hwcp-auth-primary) !important;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none !important;
}

.hwcp-recovery-back a:hover {
    text-decoration: underline !important;
}

.hwcp-recovery-active .woocommerce-notices-wrapper,
.hwcp-recovery-active .woocommerce-error,
.hwcp-recovery-active .woocommerce-message,
.hwcp-recovery-active .woocommerce-info {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

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

.hwcp-recovery-side__icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 900px) {
    .hwcp-recovery-ready .hwcp-recovery-card {
        grid-template-columns: minmax(255px, 34%) minmax(0, 1fr);
    }
    .hwcp-recovery-main { padding: 42px 36px; }
}

@media (max-width: 760px) {
    .hwcp-recovery-intro {
        margin-top: 8px;
        margin-bottom: 22px;
    }
    .hwcp-recovery-intro h1 { font-size: 34px; }
    .hwcp-recovery-intro p { font-size: 14px; }
    .hwcp-recovery-ready .hwcp-recovery-card {
        display: block;
        min-height: 0;
        border-radius: 15px;
    }
    .hwcp-recovery-side { display: none !important; }
    .hwcp-recovery-main { padding: 30px 24px 32px; }
}

@media (max-width: 480px) {
    .hwcp-recovery-main { padding: 26px 18px 28px; }
    .hwcp-recovery-active .hwcp-recovery-form input.hwcp-captcha-input {
        width: 66px !important;
        min-width: 66px !important;
        max-width: 66px !important;
    }
}

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