.infra-shell {
    --infra-blue: #274184;
    --infra-blue-dark: #213873;
    --infra-blue-hover: #475a8c;
    --infra-blue-active: #1b2e5f;
    --infra-border: #d1d5db;
    --infra-text: #111827;
    font-family: 'Figtree', 'Trebuchet MS', sans-serif;
    font-size: 14.4px;
    line-height: 1.5;
}

.infra-header {
    position: sticky;
    top: 0;
    z-index: 30;
    flex: 0 0 auto;
}

.infra-nav {
    position: relative;
    height: 70px;
    color: #fff;
    background: #082e45;
}

.infra-nav-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;
    filter: brightness(0.85);
}

.infra-nav-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 100%;
    padding: 0 16px;
}

.infra-nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: min(288px, 100vw);
    padding: 16px;
    background: #fff;
    border-right: 1px solid #d4d4d8;
    border-bottom: 1px solid #d4d4d8;
    box-shadow: 0 8px 12px rgb(0 0 0 / 15%);
}

.infra-menu-toggle[aria-expanded='true'] + .infra-nav-links {
    display: flex;
}

.infra-nav-links form {
    margin: 0;
}

.infra-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 4px;
    color: #27272a;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 150ms ease;
}

.infra-nav-link:hover,
.infra-nav-link[aria-current='page'] {
    color: #27272a;
    background: #f4f4f5;
}

.infra-nav-link:focus-visible {
    outline: 2px solid #213873;
    outline-offset: -2px;
}

.infra-menu-toggle:focus-visible,
.infra-nav-brand:focus-visible,
.infra-footer a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.infra-nav-brand {
    flex: 0 0 auto;
}

.infra-nav-brand img {
    display: block;
    width: 300px;
    max-width: 100%;
    height: 60px;
    object-fit: contain;
}

.infra-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: transparent;
    cursor: pointer;
}

.infra-menu-toggle:hover {
    background: rgb(255 255 255 / 10%);
}

.infra-main {
    flex: 1 0 auto;
    min-width: 0;
}

.infra-system-icon {
    display: inline-flex;
    flex: 0 0 56px;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 22px;
    color: #ffffff;
    background: #0d1740;
}

.infra-system-icon .ph {
    display: block;
    font-size: 28px;
    line-height: 1;
}

.infra-catalog-page .infra-main {
    background: #f3f7fb;
}

.infra-system-catalog {
    min-height: 100vh;
    padding: 0 16px 32px;
}

.infra-system-catalog-heading {
    display: flex;
    min-height: 112px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.infra-system-catalog-heading h1 {
    margin: 0;
    color: #0d1740;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.infra-system-catalog-mark {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(100%, 440px);
}

.infra-system-catalog-mark span {
    flex: 1;
    min-width: 0;
    border-bottom: 2px solid #ffc733;
}

.infra-system-catalog-mark span:last-child {
    border-color: #10b981;
}

.infra-system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    /* align-items: stretch; */
    gap: 24px;
    width: 100%;
    margin: 0 auto;
}

.infra-access-page .infra-main {
    background: #f2f3f5;
}

.infra-access {
    --infra-blue-dark: #233570;
    --infra-access-divider: #e5e7eb;
    --infra-access-padding: 24px;
    display: grid;
    gap: 22px;
    width: min(calc(100% - 32px), 1176px);
    margin: 0 auto;
    padding: 32px 0 40px;
    color: #334155;
}

.infra-access-panel {
    min-width: 0;
    padding: var(--infra-access-padding);
    border: 1px solid var(--infra-access-divider);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgb(15 23 42 / 8%);
}

.infra-access-panel h1,
.infra-access-panel-title {
    margin: 0;
    color: #1e293b;
    line-height: 1.3;
}

.infra-access-panel h1 {
    font-size: 24px;
    font-weight: 700;
}

.infra-access-panel-title {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--infra-access-divider);
    font-size: 18px;
    font-weight: 600;
}

.infra-access-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 16px;
}

.infra-access-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.infra-access-field label {
    font-weight: 600;
}

.infra-access-field select {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--infra-border);
    border-radius: 6px;
    background-color: #fff;
    color: inherit;
    font: inherit;
}

.infra-access-field select[aria-invalid='true'] {
    border-color: #b91c1c;
}

.infra-access-field select:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.infra-access-form .infra-primary-button {
    min-height: 44px;
    min-width: 196px;
    font-size: 14px;
    font-weight: 600;
}

.infra-access-error {
    margin: 12px 0 0;
    color: #b91c1c;
}

.infra-access-empty {
    margin: 0;
    color: #475569;
}

.infra-access-history {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    text-align: left;
}

.infra-access-history :is(th, td) {
    padding: 10px 16px;
    border-bottom: 1px solid var(--infra-access-divider);
    overflow-wrap: anywhere;
}

.infra-access-history th {
    background: #f2f3f5;
    font-weight: 600;
}

.infra-access-history th:last-child {
    width: 30%;
}

.infra-access-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
}

.infra-access-status-approved,
.infra-access-notice-success {
    color: #166534;
    background: #e9f7ee;
}

.infra-access-status-pending,
.infra-access-notice-warning {
    color: #854d0e;
    background: #fef3d5;
}

.infra-access-notice {
    margin: 0;
    padding: 12px 16px;
    border: 1px solid currentColor;
    border-radius: 6px;
}

.infra-access-notice a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .infra-access {
        --infra-access-padding: 16px;
        gap: 16px;
        padding-top: 20px;
    }

    .infra-access-form {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .infra-access-form .infra-primary-button {
        min-width: 0;
    }

    .infra-access-history :is(th, td) {
        padding: 8px;
    }

    .infra-access-history th:last-child {
        width: 43%;
    }
}

.infra-service-grid {
    max-width: 100%;
    margin: 32px auto;
    padding: 0 8px;
}

.infra-system-card,
.infra-system-card.card__content {
    position: relative;
    display: flex;
    box-sizing: border-box;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 254px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid #e0e8f0;
    border-radius: 22px;
    background: #fff;
    color: #0d1740;
    text-align: left;
    box-shadow: 0 8px 20px rgb(13 23 64 / 8%), 0 1px 2px rgb(13 23 64 / 5%);
    transition: box-shadow 150ms ease;
}

.infra-system-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 6px;
    background: #ffc733;
    content: '';
    pointer-events: none;
}

.infra-system-card:hover,
.infra-system-card.card__content:hover {
    scale: 1;
    box-shadow: 0 10px 24px rgb(13 23 64 / 10%), 0 1px 2px rgb(13 23 64 / 5%);
}

.infra-system-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.infra-system-card-status-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    min-width: 0;
    max-width: calc(100% - 68px);
}

.infra-system-card-status {
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff4d6;
    color: #0d1740;
    font-size: 10px;
    font-weight: 600;
    line-height: 15px;
    overflow-wrap: anywhere;
    text-align: center;
    text-transform: uppercase;
}

.infra-system-card-body {
    flex: 1;
    min-width: 0;
}

.infra-system-card .infra-system-card-title {
    margin: 0 0 4px;
    color: #0d1740;
    font-size: 26px;
    font-weight: 700;
    line-height: 31px;
    overflow-wrap: anywhere;
}

.infra-system-card .infra-system-card-description {
    display: block;
    margin: 0;
    color: #5e728e;
    font-size: 14px;
    line-height: 20px;
    overflow-wrap: anywhere;
    text-transform: none;
}

.infra-system-card-link {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    background: #0d1740;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 150ms ease;
}

.infra-system-card-link svg {
    flex: 0 0 16px;
}

.infra-system-card-link:hover {
    background: #1b2b5b;
    color: #fff;
}

.infra-system-card-link:focus-visible {
    outline: 2px solid #0d1740;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .infra-system-card,
    .infra-system-card-link {
        transition: none;
    }
}

.infra-auth-stage {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 61.2px;
    overflow: hidden;
    background: #082e45;
    color: var(--infra-text);
}

.infra-auth-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    /* The public reference and the existing institutional asset are byte-identical. */
    background: url('../images/sgi-background.png') center / cover no-repeat;
    opacity: 0.9;
}

.infra-auth-stage::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to left, transparent, rgb(0 0 0 / 50%));
    content: '';
    pointer-events: none;
}

.infra-auth-intro {
    width: 50%;
    padding: 43.2px 4.5%;
    color: #fff;
}

.infra-auth-intro h1 {
    margin: 0 0 12.6px;
    font-family: inherit;
    font-size: 32.4px;
    font-weight: 600;
    line-height: 36px;
}

.infra-auth-intro p {
    max-width: 540px;
    margin: 0;
    font-size: 14.4px;
    line-height: 21.6px;
}

.infra-auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    padding: 28.8px 21.6px;
}

.infra-auth-panel {
    width: 100%;
    max-width: 403.2px;
    padding: 28.8px;
    border-radius: 14.4px;
    background: #fff;
    box-shadow: 0 25px 50px -12px rgb(31 41 55 / 50%);
}

.infra-auth-logo {
    display: block;
    width: 175px;
    max-width: 100%;
    height: 60px;
    margin: 0 auto 21.6px;
    object-fit: contain;
}

.infra-auth-form {
    display: flex;
    flex-direction: column;
    gap: 14.4px;
}

.infra-auth-field {
    display: flex;
    flex-direction: column;
    gap: 3.6px;
    min-width: 0;
}

.infra-auth-field label {
    margin: 0;
    color: #111827;
    font-size: 12.6px;
    font-weight: 500;
    line-height: 18px;
}

.infra-auth-field .form-control,
.infra-auth-field .form-select {
    display: block;
    width: 100%;
    min-height: 38px;
    padding: 9px 10.8px;
    border: 1px solid var(--infra-border);
    border-radius: 3.6px;
    background-color: #fff;
    color: var(--infra-text);
    font-family: inherit;
    font-size: 12.6px;
    line-height: 18px;
    box-shadow: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.infra-auth-field .form-select {
    padding-right: 30px;
}

.infra-auth-field .form-control:focus,
.infra-auth-field .form-select:focus {
    border-color: #3b82f6;
    outline: 2px solid #3b82f6;
    outline-offset: -1px;
    box-shadow: none;
}

.infra-auth-field .form-control::placeholder {
    color: #6b7280;
}

.infra-auth-field .form-text {
    margin-top: 0;
    color: #5b6575;
    font-size: 12.6px;
    line-height: 18px;
}

.infra-auth-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 3.6px;
}

.infra-primary-button {
    min-height: 36px;
    padding: 7.2px 28.8px;
    border: 1px solid var(--infra-blue-dark);
    border-radius: 5.4px;
    background: var(--infra-blue-dark);
    color: #fff;
    font-family: inherit;
    font-size: 12.6px;
    font-weight: 500;
    line-height: 18px;
    cursor: pointer;
    transition: background-color 150ms ease;
}

.infra-primary-button:hover {
    background: var(--infra-blue-hover);
}

.infra-primary-button:active {
    background: var(--infra-blue-active);
}

.infra-primary-button:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 3px;
}

.infra-register-stage::after {
    background: linear-gradient(to left, rgb(0 0 0 / 20%), rgb(0 0 0 / 50%));
}

.infra-login-page {
    font-size: 16px;
    line-height: 24px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.infra-login-page .infra-auth-stage {
    min-height: 100vh;
    min-height: 100svh;
    padding: 24px 16px;
    background: #fff;
}

.infra-login-page .infra-auth-stage::after {
    background: linear-gradient(to left, rgb(2 6 23 / 20%), rgb(2 6 23 / 55%));
}

.infra-login-page .infra-auth-intro {
    padding: 0 32px;
}

.infra-login-page .infra-auth-intro h1 {
    max-width: 640px;
    margin-bottom: 16px;
    font-size: 48px;
    line-height: 48px;
    filter: drop-shadow(0 4px 3px rgb(0 0 0 / 7%)) drop-shadow(0 2px 2px rgb(0 0 0 / 6%));
}

.infra-login-page .infra-auth-intro p {
    max-width: 512px;
    color: rgb(255 255 255 / 90%);
    font-size: 18px;
    line-height: 28px;
    filter: drop-shadow(0 4px 3px rgb(0 0 0 / 7%)) drop-shadow(0 2px 2px rgb(0 0 0 / 6%));
}

.infra-login-page .infra-auth-form-side {
    padding: 0;
}

.infra-login-page .infra-auth-panel {
    max-width: 448px;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgb(2 6 23 / 20%);
}

.infra-login-page .infra-auth-logo {
    width: 450px;
    height: auto;
    margin-bottom: 24px;
}

.infra-login-page .infra-auth-form {
    gap: 16px;
}

.infra-login-page .infra-auth-field {
    gap: 4px;
}

.infra-login-page .infra-auth-field label {
    color: #52525b;
    font-size: 12px;
    line-height: 16px;
}

.infra-login-page .infra-auth-field .form-control {
    min-height: 42px;
    height: 42px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 20px;
    color: #27272a;
}

.infra-login-page .infra-auth-field .form-control:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 1px #2563eb;
}

.infra-login-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
    line-height: 20px;
}

.infra-login-links a {
    color: #64748b;
    text-decoration: none;
}

.infra-login-links a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.infra-login-links a:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 3px;
}

.infra-login-page .infra-auth-actions {
    padding-top: 8px;
}

.infra-login-page .infra-primary-button {
    min-height: 38px;
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    letter-spacing: 0.025em;
    border-color: transparent;
}

.infra-login-page .infra-primary-button:hover {
    background: rgb(33 56 115 / 70%);
}

.infra-login-back {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-height: 40px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #213873;
    background: #fff;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
}

.infra-login-back:hover {
    color: #213873;
    background: #f8fafc;
}

.infra-login-back:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.infra-register-wrap {
    width: 100%;
    max-width: 504px;
    padding: 50.4px 21.6px;
}

.infra-register-panel {
    max-width: 460.8px;
}

.infra-register-title {
    margin: 0 0 21.6px;
    color: var(--infra-text);
    font-size: 18px;
    font-weight: 600;
    line-height: 25.2px;
    text-align: center;
}

.infra-register-grid,
.infra-register-passwords {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14.4px;
}

.infra-register-passwords {
    padding-top: 0;
}

.infra-footer {
    width: 100%;
    min-height: 355px;
    margin-top: auto;
    color: #fff;
    background: linear-gradient(to bottom right, var(--infra-blue-dark), var(--infra-blue-dark), var(--infra-blue));
}

.infra-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 8px 16px;
    background: var(--infra-blue);
}

.infra-footer-links a {
    display: inline-block;
    padding: 8px;
    border: 1px solid currentColor;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    text-transform: uppercase;
    text-decoration: none;
}

.infra-footer-links a:hover {
    background: rgb(255 255 255 / 10%);
    color: #fff;
}

.infra-footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 44px;
}

.infra-footer-content > img {
    width: 300px;
    max-width: 100%;
    height: 60px;
    object-fit: contain;
}

.infra-footer-copy {
    min-width: 0;
}

.infra-footer-copy p {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 24px;
}

.infra-footer-copy p:last-child {
    margin-bottom: 0;
}

.infra-footer-copy .infra-footer-title {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
}

@media (min-width: 640px) {
    .infra-login-page .infra-auth-stage {
        padding: 32px 24px;
    }
}

@media (min-width: 768px) {
    .infra-menu-toggle {
        display: none;
    }

    .infra-nav-links {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        width: auto;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .infra-nav-link {
        color: #fff;
    }

    .infra-nav-link:hover,
    .infra-nav-link[aria-current='page'] {
        color: #fff;
        background: rgb(255 255 255 / 12%);
    }

    .infra-nav-link:focus-visible {
        outline-color: #fff;
    }
}

@media (max-width: 1023px) {
    .infra-nav-links {
        gap: 0;
    }

    .infra-login-page .infra-auth-intro h1 {
        font-size: 36px;
        line-height: 40px;
    }
}

@media (max-width: 767px) {
    .infra-nav-background {
        object-position: right;
    }

    .infra-nav-link {
        width: 100%;
        white-space: normal;
    }

    .infra-nav-brand img {
        width: min(300px, calc(100vw - 96px));
    }

    .infra-auth-intro {
        display: none;
    }

    .infra-auth-form-side {
        width: 100%;
    }

    .infra-login-page .infra-auth-stage {
        align-items: flex-start;
        padding: 88px 16px 32px;
    }

    .infra-login-back {
        top: 16px;
        left: 16px;
    }

    .infra-login-page .infra-auth-panel {
        padding: 32px;
    }

    .infra-register-wrap {
        padding: 63px 14.4px 36px;
    }

    .infra-footer-links {
        justify-content: center;
    }

    .infra-footer-links a {
        font-size: 12px;
        line-height: 16px;
    }

    .infra-footer-content {
        align-items: flex-start;
        justify-content: flex-start;
        gap: 24px;
        padding: 24px;
    }

    .infra-footer-copy p {
        font-size: 14px;
        line-height: 20px;
    }

    .infra-footer-copy .infra-footer-title {
        font-size: 18px;
        line-height: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .infra-nav-link,
    .infra-auth-field .form-control,
    .infra-auth-field .form-select,
    .infra-primary-button {
        transition: none;
    }
}
