/* Login / Register (WooCommerce #customer_login) — Dental Trauma Guide
 *
 * Woodmart overrides myaccount/form-login.php: the columns are .wd-col
 * (.col-login / .col-register), not WooCommerce's .u-column1/2. Login tabs
 * are off, so there is no third .col-register-text column.
 *
 * Same palette as page-shell.css; design-system tokens with the system's
 * value as fallback, since the site does not load design-system/styles.css.
 */
#customer_login {
    --dtg-ink: var(--text-strong, #11212e);
    --dtg-body: var(--text-body, #3f4952);
    --dtg-muted: var(--text-muted, #697680);
    --dtg-accent: var(--brand-primary, #1f6494);
    --dtg-accent-hover: var(--brand-primary-hover, #15496e);
    --dtg-line: var(--border-subtle, #e4ebf0);
    --dtg-line-hover: #cfe1ee;
    --dtg-surface: var(--surface-card, #fff);
    --dtg-on-accent: var(--text-on-brand, #fff);
    --dtg-field: #f8fbfd;
    --dtg-danger: var(--red-500, #c0392b);
    --dtg-card-radius: var(--radius-xl, 20px);
    --dtg-card-shadow: 0 10px 30px rgba(13, 36, 51, .05);
    --dtg-font: var(--font-body, Manrope, system-ui, sans-serif);

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    max-width: 1040px;
    margin: 56px auto 80px;
    font-family: var(--dtg-font);
    color: var(--dtg-body)
}

#customer_login::before,
#customer_login::after {
    display: none
}

#customer_login * {
    box-sizing: border-box
}

#customer_login>.wd-col {
    float: none;
    width: auto;
    max-width: none;
    margin: 0;
    background: var(--dtg-surface);
    border: 1px solid var(--dtg-line);
    border-radius: var(--dtg-card-radius);
    box-shadow: var(--dtg-card-shadow);
    padding: 36px 40px 40px
}

#customer_login h2 {
    font-family: var(--dtg-font);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--dtg-ink);
    margin: 0 0 24px;
    text-transform: none
}

#customer_login form {
    margin: 0;
    padding: 0;
    border: 0
}

#customer_login .form-row {
    margin: 0 0 18px;
    padding: 0
}

#customer_login label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dtg-ink);
    margin: 0 0 8px
}

#customer_login .required {
    color: var(--dtg-danger);
    font-weight: 700;
    text-decoration: none;
    border: 0
}

#customer_login input.input-text {
    width: 100%;
    height: 50px;
    font-family: inherit;
    font-size: 15px;
    color: var(--dtg-ink);
    background: var(--dtg-field);
    border: 1px solid var(--dtg-line);
    border-radius: 12px;
    padding: 0 16px;
    box-shadow: none;
    outline: 0;
    transition: border-color .15s, background .15s, box-shadow .15s
}

#customer_login input.input-text:hover {
    border-color: var(--dtg-line-hover)
}

#customer_login input.input-text:focus {
    border-color: var(--dtg-accent);
    background: var(--dtg-surface);
    box-shadow: 0 0 0 3px rgba(31, 100, 148, .12)
}

#customer_login .password-input {
    position: relative;
    display: block
}

#customer_login .password-input input {
    padding-right: 48px
}

#customer_login .show-password-input {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    cursor: pointer;
    color: var(--dtg-muted);
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/20px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/20px no-repeat
}

#customer_login .show-password-input::before,
#customer_login .show-password-input::after {
    display: none
}

#customer_login .show-password-input:hover,
#customer_login .show-password-input.display-password {
    color: var(--dtg-accent)
}

#customer_login .description {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    color: var(--dtg-muted);
    margin: 8px 0 0;
    padding: 0;
    background: none;
    border: 0
}

#customer_login .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--dtg-body);
    margin: 0;
    cursor: pointer
}

#customer_login input[type=checkbox] {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--dtg-accent);
    cursor: pointer
}

#customer_login .button {
    display: block;
    width: 100%;
    height: 52px;
    margin: 8px 0 0;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    color: var(--dtg-on-accent);
    background: var(--dtg-accent);
    border: 0;
    border-radius: 999px;
    padding: 0 24px;
    box-shadow: none;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    transition: background .15s
}

#customer_login .button:hover,
#customer_login .button:focus {
    background: var(--dtg-accent-hover);
    color: var(--dtg-on-accent)
}

#customer_login .login-form-footer {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 0
}

#customer_login .login-form-footer .woocommerce-form__label-for-checkbox {
    align-items: center
}

#customer_login .lost_password {
    font-size: 14px;
    font-weight: 600;
    color: var(--dtg-accent);
    text-decoration: none
}

#customer_login .lost_password:hover {
    color: var(--dtg-accent-hover);
    text-decoration: underline
}

@media(max-width:1024px) {
    #customer_login {
        gap: 24px;
        margin: 40px auto 64px
    }

    #customer_login>.wd-col {
        padding: 28px 28px 32px
    }
}

@media(max-width:767px) {
    #customer_login {
        grid-template-columns: 1fr
    }

    #customer_login h2 {
        font-size: 24px
    }
}
