/* HRConnect public homepage: dedicated ERP entry point. */
body.hrconnect-recruitment-os .tcv-actions .tcv-erp {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 6px 14px 6px 12px;
    border: 1px solid rgba(37, 99, 235, .38);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #0f2854 0%, #1d4ed8 58%, #0f766e 120%);
    box-shadow: 0 10px 24px rgba(29, 78, 216, .2);
    text-decoration: none;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.hrconnect-recruitment-os .tcv-actions .tcv-erp:hover {
    color: #fff;
    border-color: rgba(96, 165, 250, .72);
    box-shadow: 0 14px 30px rgba(29, 78, 216, .28);
    transform: translateY(-1px);
}

body.hrconnect-recruitment-os .tcv-actions .tcv-erp:focus-visible,
body.hrconnect-recruitment-os .hrc-erp-entry-actions a:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .28);
    outline-offset: 3px;
}

.tcv-erp-lock {
    position: relative;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .16);
}

.tcv-erp-lock::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 4px;
    width: 8px;
    height: 7px;
    border: 2px solid #fff;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
}

.tcv-erp-lock::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 10px;
    width: 10px;
    height: 8px;
    border-radius: 3px;
    background: #fff;
}

.tcv-erp-copy {
    display: grid;
    gap: 1px;
    text-align: left;
    line-height: 1.05;
}

.tcv-erp-copy strong {
    color: inherit;
    font-size: 13px;
    font-weight: 900;
}

.tcv-erp-copy small {
    color: var(--tcv-on-accent, #fff);
    font-size: 10px;
    font-weight: 700;
}

.hrc-erp-entry {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(18rem, 1fr) minmax(18rem, 24rem);
    align-items: center;
    gap: 18px;
    margin-top: 18px;
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid #d7e5f7;
    border-radius: 20px;
    background:
        radial-gradient(circle at 88% -20%, rgba(56, 189, 248, .2), transparent 34%),
        linear-gradient(135deg, #f8fbff 0%, #eef5ff 55%, #ecfdf5 120%);
    box-shadow: 0 16px 42px rgba(15, 23, 42, .08);
}

.hrc-erp-entry::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 1px rgba(255, 255, 255, .86);
}

.hrc-erp-entry-icon {
    position: relative;
    z-index: 1;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(145deg, #1d4ed8, #0f766e);
    box-shadow: 0 14px 28px rgba(29, 78, 216, .24);
}

.hrc-erp-entry-icon span {
    position: relative;
    width: 24px;
    height: 20px;
    margin-top: 7px;
    border: 2px solid currentColor;
    border-radius: 6px;
}

.hrc-erp-entry-icon span::before {
    content: "";
    position: absolute;
    left: 5px;
    top: -12px;
    width: 10px;
    height: 11px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.hrc-erp-entry-icon span::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 6px;
    width: 3px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
}

.hrc-erp-entry-copy,
.hrc-erp-entry-actions {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.hrc-erp-entry-copy {
    overflow-wrap: anywhere;
}

.hrc-erp-entry-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hrc-erp-entry h2 {
    margin: 0;
    color: #12233f;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 950;
    letter-spacing: -.02em;
}

.hrc-erp-entry p {
    max-width: 760px;
    margin: 5px 0 0;
    color: #53657d;
    font-size: 13px;
    line-height: 1.55;
}

.hrc-erp-entry-actions {
    display: grid;
    width: 100%;
    max-width: 24rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-self: end;
    justify-items: end;
    gap: 8px;
}

.hrc-erp-entry-actions > span {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #476078;
    font-size: 11px;
    font-weight: 800;
}

.hrc-erp-entry-actions > span i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .12);
}

.hrc-erp-entry-actions a {
    width: 100%;
    min-width: 0;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 17px;
    border: 1px solid #1d4ed8;
    border-radius: 13px;
    color: #fff;
    background: #1d4ed8;
    box-shadow: 0 10px 22px rgba(29, 78, 216, .2);
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
}

.hrc-erp-entry-actions a:hover {
    color: #fff;
    background: #1e40af;
}

.hrc-erp-entry-actions a b {
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 1120px) {
    .tcv-erp-copy small {
        display: none;
    }

    .hrc-erp-entry {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .hrc-erp-entry-actions {
        grid-column: 2;
        max-width: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: center;
        justify-self: stretch;
        justify-items: stretch;
    }
}

@media (max-width: 680px) {
    body.hrconnect-recruitment-os .tcv-actions .tcv-erp {
        min-width: 116px;
        min-height: 44px;
        padding-inline: 11px 13px;
    }

    body.hrconnect-recruitment-os .tcv-actions .tcv-login,
    body.hrconnect-recruitment-os .tcv-actions .tcv-register,
    body.hrconnect-recruitment-os .tcv-actions .tcv-employer {
        display: none;
    }

    .hrc-erp-entry {
        width: min(100% - 20px, 1140px);
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 12px;
        margin-top: 12px;
        margin-bottom: 14px;
        padding: 15px;
        border-radius: 18px;
    }

    .hrc-erp-entry-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .hrc-erp-entry-icon span {
        transform: scale(.82);
    }

    .hrc-erp-entry h2 {
        font-size: 18px;
        line-height: 1.25;
    }

    .hrc-erp-entry p {
        font-size: 12px;
    }

    .hrc-erp-entry-actions {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .hrc-erp-entry-actions > span {
        justify-content: center;
        text-align: center;
    }

    .hrc-erp-entry-actions a {
        width: 100%;
    }
}

@media (max-width: 520px) {
    body.hrconnect-recruitment-os .tcv-actions .tcv-erp {
        display: inline-flex !important;
    }

    .tcv-erp-copy strong {
        font-size: 12px;
    }
}

html[data-theme="dark"] body.hrconnect-recruitment-os .hrc-erp-entry,
body.hrconnect-recruitment-os.is-dark .hrc-erp-entry,
body.hrconnect-recruitment-os[data-theme="dark"] .hrc-erp-entry {
    border-color: #334460;
    background:
        radial-gradient(circle at 88% -20%, rgba(56, 189, 248, .14), transparent 34%),
        linear-gradient(135deg, #101b2d 0%, #14213b 55%, #102a29 120%);
    box-shadow: none;
}

html[data-theme="dark"] body.hrconnect-recruitment-os .hrc-erp-entry :is(h2, p),
body.hrconnect-recruitment-os.is-dark .hrc-erp-entry :is(h2, p),
body.hrconnect-recruitment-os[data-theme="dark"] .hrc-erp-entry :is(h2, p) {
    color: #eef5ff;
}

html[data-theme="dark"] body.hrconnect-recruitment-os .hrc-erp-entry-eyebrow,
body.hrconnect-recruitment-os.is-dark .hrc-erp-entry-eyebrow,
body.hrconnect-recruitment-os[data-theme="dark"] .hrc-erp-entry-eyebrow {
    color: #93c5fd;
}

html[data-theme="dark"] body.hrconnect-recruitment-os .hrc-erp-entry-actions > span,
body.hrconnect-recruitment-os.is-dark .hrc-erp-entry-actions > span,
body.hrconnect-recruitment-os[data-theme="dark"] .hrc-erp-entry-actions > span {
    color: #c1ccdc;
}

html[data-theme="dark"] body.hrconnect-recruitment-os .hrc-erp-entry-actions a,
body.hrconnect-recruitment-os.is-dark .hrc-erp-entry-actions a,
body.hrconnect-recruitment-os[data-theme="dark"] .hrc-erp-entry-actions a {
    color: var(--tcv-on-accent);
    border-color: color-mix(in srgb, var(--tcv-blue) 65%, var(--tcv-on-accent));
    background: var(--tcv-blue);
}

html[data-theme="dark"] body.hrconnect-recruitment-os .hrc-erp-entry-actions a:hover,
body.hrconnect-recruitment-os.is-dark .hrc-erp-entry-actions a:hover,
body.hrconnect-recruitment-os[data-theme="dark"] .hrc-erp-entry-actions a:hover {
    color: var(--tcv-on-accent);
    background: color-mix(in srgb, var(--tcv-blue) 88%, var(--tcv-on-accent));
}

@media (prefers-reduced-motion: reduce) {
    body.hrconnect-recruitment-os .tcv-actions .tcv-erp {
        transition: none;
    }
}
