.cp-auth {
    --cp-auth-blue: #0758b8;
    --cp-auth-blue-dark: #06366f;
    --cp-auth-blue-deep: #04264f;
    --cp-auth-gold: #c99d3e;
    --cp-auth-gold-light: #f2d487;
    --cp-auth-text: #183754;
    --cp-auth-muted: #687b8f;
    display: grid;
    width: min(1080px, 100%);
    min-height: 610px;
    grid-template-columns: minmax(310px, .86fr) minmax(420px, 1.14fr);
    margin: clamp(20px, 4vw, 54px) auto;
    overflow: hidden;
    border: 1px solid #d6e3ef;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 65px rgba(5,49,101,.16);
    color: var(--cp-auth-text);
    font-family: Lato, Inter, "Segoe UI", Arial, sans-serif;
}
.cp-auth *,
.cp-auth *::before,
.cp-auth *::after { box-sizing: border-box; }
.cp-auth__visual {
    position: relative;
    display: grid;
    min-width: 0;
    align-items: end;
    overflow: hidden;
    padding: clamp(28px, 4vw, 48px);
    border-right: 4px solid var(--cp-auth-gold);
    background:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
        radial-gradient(circle at 12% 18%, rgba(44,132,226,.48), transparent 33%),
        linear-gradient(145deg, var(--cp-auth-blue-deep), var(--cp-auth-blue-dark) 55%, var(--cp-auth-blue));
    background-size: 32px 32px, 32px 32px, auto, auto;
    color: #fff;
}
.cp-auth__visual::before {
    position: absolute;
    top: -85px;
    right: -105px;
    width: 270px;
    height: 270px;
    border: 42px solid rgba(255,255,255,.06);
    border-radius: 50%;
    content: "";
}
.cp-auth__formula {
    position: absolute;
    color: rgba(255,255,255,.12);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    white-space: nowrap;
    transform: rotate(-7deg);
}
.cp-auth__formula--one { top: 18%; left: 9%; font-size: clamp(27px, 3vw, 43px); }
.cp-auth__formula--two { top: 42%; right: 8%; font-size: clamp(23px, 2.5vw, 35px); transform: rotate(6deg); }
.cp-auth__visual-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 9px;
}
.cp-auth__visual-copy > .dashicons {
    display: grid;
    width: 62px;
    height: 62px;
    margin-bottom: 7px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 17px;
    background: rgba(255,255,255,.1);
    color: var(--cp-auth-gold-light);
    font-size: 34px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
}
.cp-auth__visual-copy p,
.cp-auth__visual-copy strong { margin: 0; color: #fff; }
.cp-auth__visual-copy p {
    color: var(--cp-auth-gold-light);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.cp-auth__visual-copy strong {
    max-width: 370px;
    font-size: clamp(27px, 3vw, 40px);
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.08;
}
.cp-auth__panel {
    display: grid;
    align-content: center;
    min-width: 0;
    padding: clamp(30px, 5vw, 62px);
    background:
        radial-gradient(circle at 100% 0, rgba(7,88,184,.07), transparent 26%),
        #fff;
}
.cp-auth__header { margin-bottom: 25px; }
.cp-auth__eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--cp-auth-blue);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.cp-auth__header h1 {
    margin: 0 !important;
    color: var(--cp-auth-blue-dark) !important;
    -webkit-text-fill-color: var(--cp-auth-blue-dark) !important;
    font-size: clamp(33px, 4.5vw, 49px) !important;
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.05;
}
.cp-auth__header p {
    max-width: 570px;
    margin: 12px 0 0 !important;
    color: var(--cp-auth-muted) !important;
    font-size: 15px;
    line-height: 1.65;
}
.cp-auth__form { display: grid; gap: 18px; }
.cp-auth__field { display: grid; gap: 8px; margin: 0; }
.cp-auth__field > span:first-child {
    color: var(--cp-auth-text);
    font-size: 13px;
    font-weight: 850;
}
.cp-auth__input-wrap {
    position: relative;
    display: flex;
    min-height: 54px;
    align-items: center;
    overflow: hidden;
    border: 1px solid #c7d5e3;
    border-radius: 12px;
    background: #f9fcff;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.cp-auth__input-wrap:focus-within {
    border-color: var(--cp-auth-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(7,88,184,.12);
}
.cp-auth__input-wrap > .dashicons {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin-left: 15px;
    color: #7690aa;
    font-size: 21px;
}
.cp-auth__input-wrap input {
    width: 100% !important;
    min-width: 0;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 10px 13px !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: #17344f !important;
    -webkit-text-fill-color: #17344f !important;
    font: inherit;
    font-size: 15px !important;
    box-shadow: none !important;
}
.cp-auth__password-toggle {
    display: grid;
    width: 48px;
    min-width: 48px;
    height: 52px;
    place-items: center;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #607990 !important;
    cursor: pointer;
    box-shadow: none !important;
}
.cp-auth__password-toggle:hover,
.cp-auth__password-toggle:focus {
    outline: 0;
    background: #edf5fd !important;
    color: var(--cp-auth-blue) !important;
}
.cp-auth__password-toggle:focus-visible { box-shadow: inset 0 0 0 2px var(--cp-auth-gold) !important; }
.cp-auth__remember {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 9px;
    margin: -2px 0 0;
    color: #50677d;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}
.cp-auth__remember input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}
.cp-auth__check {
    display: grid;
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    place-items: center;
    border: 1px solid #9cb0c4;
    border-radius: 6px;
    background: #fff;
}
.cp-auth__remember input:checked + .cp-auth__check {
    border-color: var(--cp-auth-blue);
    background: var(--cp-auth-blue);
}
.cp-auth__remember input:checked + .cp-auth__check::after {
    color: #fff;
    content: "✓";
    font-size: 14px;
    font-weight: 900;
}
.cp-auth__remember input:focus-visible + .cp-auth__check {
    outline: 3px solid rgba(7,88,184,.2);
    outline-offset: 2px;
}
.cp-auth__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-top: 2px;
}
.cp-auth .cp-auth__button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 11px;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.cp-auth .cp-auth__button--primary {
    border-color: var(--cp-auth-blue) !important;
    background: linear-gradient(135deg, #0c69cb, var(--cp-auth-blue), var(--cp-auth-blue-dark)) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    box-shadow: 0 11px 24px rgba(7,88,184,.22);
}
.cp-auth .cp-auth__button--secondary {
    border-color: #d0a844 !important;
    background: linear-gradient(135deg, #f8df99, #d5aa43) !important;
    color: #173b68 !important;
    -webkit-text-fill-color: #173b68 !important;
    box-shadow: 0 9px 20px rgba(172,126,24,.15);
}
.cp-auth .cp-auth__button:hover,
.cp-auth .cp-auth__button:focus {
    outline: 0;
    transform: translateY(-1px);
    filter: saturate(1.08);
}
.cp-auth .cp-auth__button:focus-visible {
    outline: 3px solid rgba(7,88,184,.23);
    outline-offset: 3px;
}
.cp-auth .cp-auth__button--wide { width: 100%; }
.cp-auth__forgot {
    display: block;
    width: fit-content;
    margin: 20px auto 0;
    color: var(--cp-auth-blue) !important;
    font-size: 13px;
    font-weight: 850;
    text-align: center;
    text-decoration: none !important;
}
.cp-auth__forgot:hover,
.cp-auth__forgot:focus { color: var(--cp-auth-blue-dark) !important; text-decoration: underline !important; text-underline-offset: 4px; }
.cp-auth__alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 20px;
    padding: 13px 15px;
    border: 1px solid #c9dbed;
    border-radius: 11px;
    background: #f3f8fd;
}
.cp-auth__alert .dashicons { flex: 0 0 21px; width: 21px; height: 21px; font-size: 21px; }
.cp-auth__alert p { margin: 0 !important; color: inherit !important; font-size: 13px; line-height: 1.5; }
.cp-auth__alert--error { border-color: #efc4c8; background: #fff4f5; color: #902c35; }
.cp-auth__alert--success { border-color: #b7ddc4; background: #f0faf4; color: #17623e; }
.cp-auth__signed-in {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid #b7ddc4;
    border-radius: 12px;
    background: #f0faf4;
}
.cp-auth__signed-in > .dashicons {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    color: #168052;
    font-size: 34px;
}
.cp-auth__signed-in strong,
.cp-auth__signed-in p { display: block; margin: 0 !important; }
.cp-auth__signed-in strong { color: #155c3d; font-size: 15px; }
.cp-auth__signed-in p { margin-top: 3px !important; color: #587565 !important; font-size: 13px; }
.cp-auth__hint {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: -3px 0 0 !important;
    color: var(--cp-auth-muted) !important;
    font-size: 12px;
    line-height: 1.5;
}
.cp-auth__hint .dashicons { flex: 0 0 18px; width: 18px; height: 18px; color: var(--cp-auth-gold); font-size: 18px; }
@media (max-width: 820px) {
    .cp-auth {
        min-height: 0;
        grid-template-columns: 1fr;
        border-radius: 19px;
    }
    .cp-auth__visual {
        min-height: 205px;
        align-items: end;
        padding: 27px;
        border-right: 0;
        border-bottom: 4px solid var(--cp-auth-gold);
    }
    .cp-auth__visual-copy > .dashicons { width: 48px; height: 48px; font-size: 27px; }
    .cp-auth__visual-copy strong { font-size: clamp(24px, 7vw, 34px); }
    .cp-auth__formula--one { top: 15%; left: auto; right: 7%; }
    .cp-auth__formula--two { display: none; }
    .cp-auth__panel { padding: clamp(27px, 7vw, 45px); }
}
@media (max-width: 480px) {
    .cp-auth { width: 100%; margin: 15px auto; border-radius: 15px; }
    .cp-auth__visual { min-height: 180px; padding: 22px 19px; }
    .cp-auth__panel { padding: 27px 18px 30px; }
    .cp-auth__actions { grid-template-columns: 1fr; }
    .cp-auth__input-wrap > .dashicons { margin-left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .cp-auth__input-wrap,
    .cp-auth .cp-auth__button { transition: none; }
}
