:root {
    --ink: #17233d;
    --ink-soft: #223050;
    --paper: #edeeea;
    --paper-card: #ffffff;
    --stamp: #a8402e;
    --stamp-dark: #832f21;
    --slate: #57626f;
    --line: #d9d6cc;
    --line-on-ink: rgba(255, 255, 255, 0.14);
    --ink-text-soft: rgba(255, 255, 255, 0.68);
}

* {
    box-sizing: border-box;
}
 
html,
body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(165deg, rgba(23, 35, 61, 0.90) 0%, rgba(23, 35, 61, 0.80) 40%, rgba(90, 45, 35, 0.75) 100%),
        url('../../assets/images/background.jpg') center center / cover no-repeat fixed,
        var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--ink);
}

.nhrc-eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nhrc-shell {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.nhrc-panel {
    width: 100%;
    max-width: 940px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--paper-card);
    box-shadow: 0 24px 60px -20px rgba(23, 35, 61, 0.35);
    border-radius: 4px;
    overflow: hidden;
}

/* ---- Left: identity panel ---- */
.nhrc-identity {
    position: relative;
    background: linear-gradient(165deg, var(--ink) 0%, var(--ink-soft) 100%);
    color: #fff;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.nhrc-seal-watermark {
    position: absolute;
    right: -70px;
    bottom: -70px;
    width: 340px;
    height: 340px;
    opacity: 0.16;
    transform: rotate(-8deg) scale(0.85);
    transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
    .nhrc-seal-watermark {
        animation: nhrc-stamp-settle 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
    }
}

@keyframes nhrc-stamp-settle {
    0% {
        opacity: 0;
        transform: rotate(6deg) scale(1.25);
    }

    60% {
        opacity: 0.2;
    }

    100% {
        opacity: 0.16;
        transform: rotate(-8deg) scale(0.85);
    }
}

.nhrc-logo-row {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.nhrc-logo-row img {
    width: 65px;
    height: 55px;
    border-radius: 48%;
    display: block;
}

.nhrc-logo-row .nhrc-eyebrow {
    color: var(--ink-text-soft);
}

.nhrc-identity-copy {
    position: relative;
    z-index: 1;
    margin-top: 40px;
}

.nhrc-identity-copy h1 {
    font-family: 'Source Serif 4', serif;
    font-weight: 600;
    font-size: 34px;
    line-height: 1.15;
    margin: 0 0 14px;
}

.nhrc-identity-copy p {
    color: var(--ink-text-soft);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    max-width: 34ch;
}

.nhrc-identity-foot {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--line-on-ink);
    padding-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-text-soft);
    font-size: 12.5px;
}

.nhrc-identity-foot i {
    color: #cf8a7d;
}

/* ---- Identity Panel Background Image Overlay ---- */
.nhrc-identity::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../assets/images/background-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Adjust this to make the image more or less visible (0.0 to 1.0) */
    opacity: 0.07;

    /* Optional: This blends the image with your dark blue gradient nicely */
    mix-blend-mode: luminosity;

    /* Keeps the image behind your text and logos */
    z-index: 0;
}

/* ---- Right: form panel ---- */
.nhrc-form-panel {
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
}

.nhrc-form-ref {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--slate);
    margin-bottom: 28px;
}

.nhrc-form-ref .nhrc-eyebrow {
    color: var(--slate);
}

.nhrc-form-panel h2 {
    font-family: 'Source Serif 4', serif;
    font-weight: 600;
    font-size: 24px;
    margin: 0 0 6px;
    color: var(--ink);
}

.nhrc-form-panel>p.nhrc-sub {
    margin: 0 0 28px;
    color: var(--slate);
    font-size: 14px;
}

.nhrc-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fbf1ef;
    border-left: 3px solid var(--stamp);
    padding: 12px 14px;
    border-radius: 2px;
    margin-bottom: 22px;
}

.nhrc-alert i {
    color: var(--stamp);
    margin-top: 2px;
    font-size: 13px;
}

.nhrc-alert p {
    margin: 0;
    font-size: 13.5px;
    color: #6b3229;
    line-height: 1.5;
}

.nhrc-field {
    margin-bottom: 20px;
}

.nhrc-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 7px;
}

.nhrc-input-wrap {
    position: relative;
}

.nhrc-input-wrap i.nhrc-input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa2ad;
    font-size: 14px;
    pointer-events: none;
}

.nhrc-input-wrap input[type="text"],
.nhrc-input-wrap input[type="password"] {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border: 1px solid var(--line);
    border-radius: 3px;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--ink);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nhrc-input-wrap input::placeholder {
    color: #a7ada2;
}

.nhrc-input-wrap input:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(23, 35, 61, 0.1);
}

.nhrc-toggle-pw {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    color: #9aa2ad;
    cursor: pointer;
    font-size: 14px;
}

.nhrc-toggle-pw:hover {
    color: var(--slate);
}

.nhrc-toggle-pw:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
    border-radius: 4px;
}

.nhrc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 24px;
    font-size: 13.5px;
}

.nhrc-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--slate);
}

.nhrc-remember input {
    accent-color: var(--ink);
    width: 15px;
    height: 15px;
}

.nhrc-row a {
    color: var(--stamp-dark);
    text-decoration: none;
    font-weight: 500;
}

.nhrc-row a:hover {
    text-decoration: underline;
}

.nhrc-captcha {
    margin-bottom: 24px;
}

.nhrc-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 18px;
    background: var(--ink);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 14.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
}

.nhrc-submit:hover {
    background: var(--ink-soft);
}

.nhrc-submit:active {
    transform: translateY(1px);
}

.nhrc-submit:focus-visible {
    outline: 2px solid var(--stamp);
    outline-offset: 2px;
}

.nhrc-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.nhrc-page-foot {
    text-align: center;
    margin-top: 22px;
    color: var(--slate);
    font-size: 12.5px;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
    .nhrc-shell {
        padding: 0;
    }

    .nhrc-panel {
        grid-template-columns: 1fr;
        border-radius: 0;
        max-width: 480px;
        margin: 0 auto;
        min-height: 100vh;
    }

    .nhrc-identity {
        padding: 32px 28px;
    }

    .nhrc-identity-copy {
        margin-top: 24px;
    }

    .nhrc-identity-copy h1 {
        font-size: 26px;
    }

    .nhrc-seal-watermark {
        width: 200px;
        height: 200px;
        right: -50px;
        bottom: -50px;
    }

    .nhrc-form-panel {
        padding: 32px 28px 40px;
    }
}

@media (min-width: 861px) {
    .nhrc-shell {
        padding: 40px 20px;
    }
}