/* PayPal-inspired login for Human Custom Patches */

.chp-login-body,
.chp-login-body.fi-body {
    margin: 0;
    min-height: 100vh;
    background: #fff !important;
    color: #001c64;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html.dark .chp-login-body {
    background: #fff !important;
    color-scheme: light;
}

.chp-login {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.chp-login__main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px 24px 32px;
}

.chp-login__card {
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.chp-login__brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 0 0 36px;
    text-decoration: none;
    color: inherit;
}

.chp-login__mark {
    width: 64px;
    height: 40px;
    display: block;
}

.chp-login__logo-img {
    display: block;
    max-height: 56px;
    max-width: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.chp-login__wordmark {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #001c64;
}

.chp-login__wordmark span {
    color: #0070ba;
}

.chp-login__product {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6c7378;
}

.chp-login__identity {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin: 0 0 20px;
    font-size: 15px;
    color: #001c64;
}

.chp-login__identity-email {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.chp-login__change {
    flex-shrink: 0;
    border: 0;
    background: none;
    padding: 0;
    color: #0070ba;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.chp-login__change:hover {
    text-decoration: underline;
}

.chp-field {
    position: relative;
    margin-bottom: 16px;
    text-align: left;
}

.chp-field__input {
    width: 100%;
    height: 64px;
    box-sizing: border-box;
    padding: 22px 16px 8px;
    border: 1px solid #9da3ae;
    border-radius: 8px;
    background: #fff;
    color: #001c64;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.chp-field__input--password {
    padding-right: 72px;
}

.chp-field__input::placeholder {
    color: transparent;
}

.chp-field__label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c7378;
    font-size: 16px;
    pointer-events: none;
    transition: top 0.12s ease, transform 0.12s ease, font-size 0.12s ease;
}

.chp-field__input:focus,
.chp-field__input:not(:placeholder-shown) {
    padding-top: 26px;
    padding-bottom: 8px;
}

.chp-field__input:focus + .chp-field__label,
.chp-field__input:not(:placeholder-shown) + .chp-field__label {
    top: 10px;
    transform: none;
    font-size: 12px;
    font-weight: 600;
    color: #545d68;
}

.chp-field__input:focus {
    border-color: #0070ba;
    border-width: 2px;
    padding-left: 15px;
    box-shadow: 0 0 0 1px rgba(0, 112, 186, 0.12);
}

.chp-field.is-invalid .chp-field__input {
    border-color: #d20000;
    border-width: 2px;
    padding-left: 15px;
}

.chp-field__toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: none;
    color: #0070ba;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    padding: 8px;
}

.chp-field__toggle:hover {
    text-decoration: underline;
}

.chp-error {
    margin: 0 0 16px;
    text-align: left;
    color: #d20000;
    font-size: 14px;
    font-weight: 600;
}

.chp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    margin-top: 8px;
    border: 0;
    border-radius: 24px;
    background: #0070ba;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.chp-btn:hover {
    background: #003087;
    box-shadow: 0 4px 12px rgba(0, 28, 100, 0.18);
}

.chp-btn:active {
    background: #001c64;
    box-shadow: none;
}

.chp-btn:disabled,
.chp-btn[wire\:loading][disabled] {
    opacity: 0.72;
    cursor: wait;
}

.chp-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 20px 0 4px;
    text-align: left;
    color: #001c64;
    font-size: 15px;
    cursor: pointer;
    user-select: none;
}

.chp-remember input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #0070ba;
    cursor: pointer;
}

.chp-help {
    margin: 28px 0 0;
    font-size: 15px;
}

.chp-help a,
.chp-login__footer a {
    color: #0070ba;
    font-weight: 600;
    text-decoration: none;
}

.chp-help a:hover,
.chp-login__footer a:hover {
    text-decoration: underline;
}

.chp-login__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 28px;
    padding: 20px 24px 28px;
    border-top: 1px solid #cbd2d6;
    color: #545d68;
    font-size: 13px;
}

.chp-login__footer-copy {
    width: 100%;
    margin: 4px 0 0;
    text-align: center;
    color: #6c7378;
}

@media (max-width: 520px) {
    .chp-login__main {
        padding: 32px 16px 24px;
    }

    .chp-login__wordmark {
        font-size: 20px;
    }
}
