/* Base */
html, body {
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', 'Segoe UI', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #ffffff;
    color: #00157D;
}

h1, h2, h3 {
    font-family: 'Rubik', 'Open Sans', sans-serif;
    color: #00157D;
    font-style: normal;
}

h1 {
    font-size: 32px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 24px;
    font-weight: 500;
}

h3 {
    font-size: 16px;
    font-weight: 400;
}

input {
    font-family: 'ArialMT', 'Arial';
    font-weight: 400;
    font-style: normal;
    font-size: 13px;
    text-decoration: none;
    letter-spacing: normal;
    color: #000;
    text-rendering: optimizeLegibility;
    text-decoration: none;
}

label, span {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-style: normal;
}

a, a:hover {
    color: #006ED6;
    font-weight: 400;
}

/* Login shell — 60/40 split matching design handover */
.gv-login-shell {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    background: #ffffff;
    color: #00157D;
}

.gv-login-panel {
    box-sizing: border-box;
    flex: 1 1 60%;
    min-width: min(100%, 420px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 32px 32px 56px;
    background: #ffffff;
}

.gv-login-panel-inner {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.gv-login-panel-body {
    flex: 0 0 auto;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.gv-service-status {
    margin: auto 0 0;
    padding-top: 24px;
    text-align: center;
}

.gv-service-status a,
.gv-section-content .gv-service-status a {
    font-size: 13px;
    font-weight: 600;
    color: #006ED6;
    text-decoration: none;
}

.gv-service-status a:hover,
.gv-section-content .gv-service-status a:hover {
    color: #00157D;
    text-decoration: underline;
}

.gv-login-aside {
    box-sizing: border-box;
    flex: 1 1 40%;
    max-width: 40%;
    min-width: min(100%, 320px);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 320px;
    padding: 0;
    overflow: hidden;
}

.gv-login-aside-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Sections */
.gv-section-form {
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.gv-section-title {
    width: 100%;
    max-width: 400px;
    line-height: normal;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gv-section-title h1 {
    margin: 0;
    white-space: normal;
}

.gv-section-title .gv-light-4,
.gv-section-title p {
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333333;
    text-wrap: pretty;
}

.gv-section-form label {
    color: #333333;
}

.gv-section-content {
    width: 100%;
    max-width: 400px;
}

.gv-section-content .container-fluid {
    padding: 0;
}

.gv-section-container-loggedin {
    padding: 50px 15px 20px 15px;
}

.gv-section-form-container {
    height: 100%;
    vertical-align: middle;
    align-items: center;
    display: flex;
    margin-top: auto;
    margin-bottom: auto;
}

.gv-section-highlighted-sidebar {
    overflow-y: hidden;
    background-position: left top;
    background-repeat: repeat-y;
    background-attachment: scroll;
}

.gv-section-highlighted-sidebar span { 
    line-height: 24px; 
}

.gv-section-form-container {
    height: 100%;
    vertical-align: middle;
    align-items: center;
    display: flex;
    margin-top: auto;
    margin-bottom: auto;
}

.gv-section-footer {
    margin-top: 20px;
    padding-top: 26px;
    border-top: 1px solid #E6E8F2;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.gv-section-footer.gv-footer-flush {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.gv-section-row {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 10px;
    box-sizing: border-box;
}

.gv-section-body {
    padding: 0;
}

.gv-section-column-half {
    flex: 1 1 50%;
    width: 50%;
    min-width: 0;
}

.gv-register-row {
    margin-top: 0;
}

.gv-section-column-full {
    width: 100%;
}

.gv-section-list {
    margin-top: 20px !important;
}

.gv-section-first-row {
    margin-top: 40px;
}

.gv-section-logged-in {
    margin-top: 19px;
}

.gv-section-logged-in div .row {
    margin: 0;
}

.gv-section-box-content span {
    line-height: 20px;
}

.gv-section-form-validation {
    width: 400px;
    flex-direction: row;
    display: flex;
}

.gv-section-form-validation button {
    width: auto;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 20px;
    white-space: nowrap;
}

.gv-section-remember-me label {
    font-style: normal;
    min-height: 20px;
    margin-bottom: 0;
    color: #333;
}

.gv-section-remember-me input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: left;
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    margin: 1px 12px 0 0;
    padding: 0;
    flex-shrink: 0;
    cursor: pointer;
    background: #fff;
    border: 1px solid #C5D6F0;
    border-radius: 4px;
    vertical-align: middle;
}

.gv-section-remember-me input[type="checkbox"]:hover {
    border-color: #006ED6;
}

.gv-section-remember-me input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: none;
}

.gv-section-remember-me input[type="checkbox"]:checked {
    background: #006ED6;
    border-color: #006ED6;
}

.gv-section-remember-me input[type="checkbox"]:checked::after {
    content: "";
    display: block;
    width: 4px;
    height: 8px;
    margin-top: -1px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.gv-section-container {
    display: flex;
    display: -webkit-flex;
    margin: 0;
    padding: 0;
}

.gv-section-form-container {
    height: 100%;
    vertical-align: middle;
    align-items: center;
    display: flex;
    margin-top: auto;
    margin-bottom: auto;
}

.gv-section-secondary-content {
    color: #666;
}

.gv-section-authenticator-code {
    margin: 0;
    padding: 0;
}

.gv-section-authenticator-code .row {
    margin: 0;
}

.gv-section-logged-in {
    margin-top: 19px;
}

.gv-section-logged-in .gv-box {
    min-height: 332px;
}

.gv-section-logged-in div .row {
    margin: 0;
}

/* Buttons — Gold-Vision SSO redesign */
.gv-button {
    cursor: pointer;
    box-shadow: none;
    font-style: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    gap: 8px;
    height: 40px;
    min-width: 132px;
    padding: 0 26px;
    border-radius: 6px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
    -webkit-appearance: none;
    appearance: none;
}

/* Anchors used as buttons — keep flex centering (don't override display). */
a.gv-button {
    text-decoration: none;
    box-sizing: border-box;
    vertical-align: middle;
    /* esteiro a:hover { font-weight: 400 } is more specific than .gv-button and reflows label */
    font-weight: 600 !important;
}

a.gv-button:hover,
a.gv-button:focus,
a.gv-button:active {
    text-decoration: none;
    font-weight: 600 !important;
}

.gv-button:focus {
    outline: none;
}

.gv-button:focus-visible {
    box-shadow: none;
}

.gv-button:disabled,
.gv-button.is-loading {
    cursor: wait;
    opacity: 0.85;
    pointer-events: none;
}

.gv-button-primary {
    color: #fff;
    background-color: #006ED6;
    border: 1px solid #006ED6;
}

a.gv-button-primary,
a.gv-button-primary:hover,
a.gv-button-primary:focus,
a.gv-button-primary:active {
    color: #fff !important;
}

.gv-button-primary:hover:not(:disabled):not(.is-loading) {
    background-color: #0063C1;
    border-color: #0063C1;
}

.gv-button-primary:active:not(:disabled):not(.is-loading) {
    background-color: #0058AB;
    border-color: #0058AB;
}

.gv-button-secondary {
    color: #006ED6;
    background-color: transparent;
    border: 1px solid #006ED6;
    height: 40px;
    min-width: 0;
    padding: 0 22px;
}

a.gv-button-secondary,
a.gv-button-secondary:hover,
a.gv-button-secondary:focus,
a.gv-button-secondary:active {
    color: #006ED6 !important;
}

.gv-button-secondary:hover:not(:disabled):not(.is-loading),
a.gv-button-secondary:hover:not(:disabled):not(.is-loading),
a.gv-button-secondary:focus:not(:disabled):not(.is-loading),
a.gv-button-secondary:active:not(:disabled):not(.is-loading) {
    color: #ffffff !important;
    background-color: #006ED6;
    border-color: #006ED6;
}

.gv-section-footer .gv-button-secondary {
    height: 40px;
}

.gv-button-large {
    width: 100%;
    max-width: 400px;
}

.gv-button-medium {
    width: auto;
    min-width: 0;
    padding: 0 22px;
}

.gv-button-small {
    width: auto;
    min-width: 132px;
    padding: 0 26px;
    margin-left: auto;
}

.gv-button.is-loading.gv-button-small {
    min-width: 132px;
}

.gv-button .gv-btn-label {
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    color: inherit;
}

.gv-btn-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: gv-spin 0.65s linear infinite;
    flex-shrink: 0;
}

.gv-button-secondary .gv-btn-spinner {
    border-color: rgba(0, 110, 214, 0.25);
    border-top-color: #006ED6;
}

.gv-button.is-loading .gv-btn-spinner {
    display: inline-block;
}

@keyframes gv-spin {
    to { transform: rotate(360deg); }
}

.gv-button-top-gutter {
    margin-top: 20px;
}

.gv-button-bottom-gutter {
    margin-bottom: 20px;
}

.gv-button-image{
    background-size: 44px 36px;
    background-repeat: no-repeat;
    background-position: center left 0;
    display: inline-block;
}
  
.gv-button-image-google {
    background-image: url('../img/icon-google.png');
}

.gv-button-image-azure {
    background-image: url('../img/icon-azure.png');
}

.gv-button-close {
    align-self: center;
}

.gv-button-image-linkedin {
    background-image: url('../img/icon-linkedin.png');
}

/* IdP stack — providers first, then password */
.gv-sign-in-using {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
}

.gv-sign-in-using[hidden] {
    display: none !important;
}

.gv-idp-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 0;
}

.gv-idp-or {
    display: none !important;
}

.gv-idp-or[hidden] {
    display: none !important;
}

.gv-passkey-slot:empty {
    display: none;
}

.gv-passkey-block {
    margin-top: 18px;
    max-width: 400px;
}

.gv-passkey-block.gv-passkey-in-stack {
    margin-top: 0;
    max-width: none;
    width: 100%;
}

.gv-passkey-block.gv-passkey-in-stack:empty {
    display: none;
}
.gv-passkey-block .gv-passkey-btn,
a.gv-passkey-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none !important;
    margin-top: 8px;
    font-weight: 600 !important;
}

.gv-passkey-block .gv-passkey-btn:hover,
.gv-passkey-block .gv-passkey-btn:focus,
a.gv-passkey-btn:hover,
a.gv-passkey-btn:focus,
a.gv-passkey-btn:active {
    text-decoration: none !important;
    font-weight: 600 !important;
}
.gv-passkey-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}
.gv-passkey-item {
    padding: 10px 12px;
    border: 1px solid #e2e8eb;
    border-radius: 8px;
    margin-bottom: 8px;
    color: #00157D;
    font-weight: 600;
    font-size: 13px;
}

.gv-idp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    padding: 0 16px 0 48px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 22px 22px;
    border: 1px solid #C5D6F0;
    border-radius: 8px;
    color: #00157D;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.gv-idp-btn:hover,
.gv-idp-btn:focus {
    background-color: #F3F8FC;
    border-color: #006ED6;
    color: #00157D;
    text-decoration: none;
    outline: none;
}

.gv-idp-btn-google {
    background-image: url('../img/icon-google.png');
}

.gv-idp-btn-azure {
    background-image: url('../img/icon-azure.png');
}

.gv-idp-btn-linkedin {
    background-image: url('../img/icon-linkedin.png');
}

/* Microsoft button — outlined primary blue per redesign */
.gv-ms-signin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 40px;
    height: 40px;
    padding: 0 18px;
    background: transparent;
    border: 1px solid #006ED6;
    border-radius: 6px;
    color: #006ED6;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.gv-ms-signin:hover,
.gv-ms-signin:focus {
    background: #E6F1FB;
    border-color: #006ED6;
    color: #006ED6;
    text-decoration: none;
    outline: none;
    opacity: 1;
}

.gv-ms-signin .gv-ms-icon {
    display: grid;
    grid-template-columns: 9px 9px;
    grid-template-rows: 9px 9px;
    gap: 2px;
    width: auto;
    height: auto;
    flex-shrink: 0;
}

.gv-ms-signin .gv-ms-label {
    flex: 0 1 auto;
}

.gv-ms-signin .gv-ms-icon span {
    display: block;
    width: 100%;
    height: 100%;
}

.gv-ms-signin .gv-ms-icon span:nth-child(1) { background: #f25022; }
.gv-ms-signin .gv-ms-icon span:nth-child(2) { background: #7fba00; }
.gv-ms-signin .gv-ms-icon span:nth-child(3) { background: #00a4ef; }
.gv-ms-signin .gv-ms-icon span:nth-child(4) { background: #ffb900; }

.gv-button--close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.gv-button--close:hover,
.gv-button--close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.gv-button--add {
    background-color: #00157D;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
}

.gv-button--add:hover {
    background-color: #1272b3;
    color: white;
}

.gv-button-spacer {
    margin-top: 5px;
}

/* Table/Grid */
.gv-table * {
    font-weight: 400 !important;
    font-size: 12px !important;
    color: #333 !important;
}

.gv-table a,
.gv-table a:hover {
    font-weight: 400 !important;
    color: #006ED6 !important;
}

.gv-table div div div table thead tr th div {
    font-weight: 600 !important;
    color: #666 !important;
}

.gv-table div div div table thead tr th,
.gv-table div div div table tbody tr td {
    height: 0 !important;
    padding: 10px 15px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gv-table div div div table tbody,
.gv-table div div div table tbody tr td {
    border-width: 0 0 1px 0 !important;
    border-color: #cecece !important;
}

.gv-table #Grid, 
.gv-table #Grid .e-gridheader,
.gv-table div div div table thead tr th {
    border: none 0 !important;
}

.gv-table div div div table thead tr th {
    background-color: rgba(242, 242, 242, 1) !important;
}

.gv-table div div div table tbody .e-hover,
.gv-table div div div table tbody tr .e-active {
    background: none !important;
}

#addInstance a,
#addInstance a:hover {
    font-weight: 600;
    color: #337ab7;
}

/* Checkbox */
.gv-form-input {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.gv-form-input label {
    padding-top: 1px;
    line-height: 1.4;
}

.gv-form-input input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    margin: 1px 12px 0 0;
    padding: 0;
    flex-shrink: 0;
    cursor: pointer;
    background: #fff;
    border: 1px solid #C5D6F0;
    border-radius: 4px;
    vertical-align: middle;
}

.gv-form-input input[type="checkbox"]:hover {
    border-color: #006ED6;
}

.gv-form-input input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: none;
}

.gv-form-input input[type="checkbox"]:checked {
    background: #006ED6;
    border-color: #006ED6;
}

.gv-form-input input[type="checkbox"]:checked::after {
    content: "";
    display: block;
    width: 4px;
    height: 8px;
    margin-top: -1px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.gv-form-input input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Layout */
.gv-light-6, 
.gv-light-5,
.gv-light-4,
.gv-light-3,
.gv-light-2,
.gv-light-1 {
    font-weight: 400;
}

.gv-strong-6,
.gv-strong-5,
.gv-strong-4,
.gv-strong-3,
.gv-strong-2,
.gv-strong-1 {
    font-weight: 600;
}

.gv-light-6,
.gv-strong-6 {
    font-size: 12px;
}

.gv-light-5,
.gv-strong-5 {
    font-size: 13px;
}

.gv-light-4,
.gv-strong-4 {
    font-size: 14px;
}

.gv-light-3,
.gv-strong-3 {
    font-size: 16px;
}

.gv-light-2,
.gv-strong-2 {
    font-size: 18px;
}

.gv-light-1,
.gv-strong-1 {
    font-size: 24px;
}

.gv-header {
    height: 50px;
    background: #00157D;
    font-size: 1.1rem;
    color: #fff;
}

.gv-primary-title {
    color: #006ED6;
}

.gv-main-header {
    display: flex;
    align-items: center;
}

.gv-main-header-logo {
    flex: 0 0 auto;
    text-align: center;
    height: 33px;
    max-height: 33px;
    margin-left: 20px;
    flex-direction: row;
    display: flex;
}

.gv-main-header-logo img {
    align-self: center;
}

.gv-main-header-logo-big {
    width: 129px;
}

.gv-main-header-logo-small {
    margin-top: 5px;
    margin-right: 5px;
    display: none;
    height: 22px;
    width: 22px;
}

.gv-main-header-logo span,
.gv-nav-bar-primary {
    align-self: center;
    padding: 0 0 0 5px;
    font-family: 'Open Sans', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
}

.gv-main-header-home-button {
    margin-left: 16px;
    cursor: pointer;
}

.gv-main-header-user-options {
    display: flex;
    flex: 1 0 auto;
    justify-content: flex-end;
    padding-right: 16px;
}

.gv-main-header-user-options, .gv-main-header-home-button {
    font-size: 24px;
}

.gv-logo {
    width: 190px;
    max-width: 60%;
    height: auto;
    display: block;
    flex: 0 0 auto;
    margin: 0;
    position: static;
}

.gv-image-container {
    height: 60px;
    width: 60px;
    background: #E6EDF5;
    border-radius: 5px;
    display: flex;
    margin-bottom: 20px;
}

.gv-image-container img {
    height: 30px;
    margin: auto;
}

.gv-recovery-code-list-item {
    color: #c7254e;
    background-color: #f9f2f4;
    border-radius: 5px;
    font-size: 24px;
    padding: 5px 10px;
    margin: 10px;
}

.gv-section-2fa {
    padding-top: 20px;
}

.gv-right-buffer {
    margin-right: 20px;
}

.gv-section-logged-in *, .gv-nav-bar-primary, .gv-nav-bar-secondary {
    font-family: 'Open Sans', sans-serif;
    font-style: normal;
}

.gv-profile-input {
    font-size: 12px !important;
    border-radius: 2px;
    box-shadow: none;
}

.gv-section-form-logged-in .row {
    padding-bottom: 20px;
}

.gv-detail-label {
    color: #333333;
    font-size: 12px;
    font-weight: 600;
    padding-top: 10px;
}

.gv-box {
    border-width: 1px;
    border-style: solid;
    border-color: rgba(215, 215, 215, 1);
    background-color: white;
}

.gv-box #Grid {
    margin: 15px 15px 28px 15px;
}

.gv-shadow {
    box-shadow: 0px 5px 6px rgba(215, 215, 215, 0.349019607843137);
}

.gv-user-services-inner {
    height: 207px;
    padding: 25px 43px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 10px;
    border: solid 1px rgba(215, 215, 215, 1);
    background-color: white;
}

.gv-user-services {
    text-align: center;
}

.gv-user-services .gv-main-title {
    padding-bottom: 2rem;
}

.gv-user-services h4 {
    color: #00157D;
}

.gv-user-services span {
    color: #333;
    display: inline-table;
}

a.gv-user-services,
a.gv-user-services:hover {
    text-decoration: none;
}

.gv-user-services .row {
    margin-right: -15px !important;
    margin-left: -15px !important;
}

.gv-image-background-primary {
    background-image: url('../img/gv-pattern.png');
}

.gv-image-background-secondary {
    background-image: url('../img/gv-pattern.png');
}

.gv-white-box {
    border-width: 1px;
    border-style: solid;
    border-color: rgba(215, 215, 215, 1);
    background-color: white;
}

.gv-box-shadow {
    box-shadow: 0px 5px 6px rgba(215, 215, 215, 0.349019607843137);
}

.gv-login-username {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    background-color: #E6E8F2;
    border: 1px solid #CCD0E5;
    border-radius: 6px;
    padding: 12px 14px;
    max-width: 100%;
    min-height: 48px;
    height: auto;
    color: #00157D;
    font-size: 14px;
    font-weight: 500;
}

.gv-login-username .gv-section-column-half {
    display: flex;
    align-items: center;
    height: auto;
}

.gv-login-username .gv-section-column-half:first-child {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

.gv-login-username .gv-section-column-half:last-child {
    flex: 0 0 auto;
    width: auto;
}

.gv-login-username .gv-align-right {
    justify-content: flex-end;
}

.gv-login-username .gv-change-email,
.gv-login-username a.gv-change-email {
    font-size: 14px;
    font-weight: 600;
    color: #006ED6;
    text-decoration: none;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    line-height: 1.2;
    border-radius: 2px;
}

.gv-login-username .gv-change-email:hover,
.gv-login-username a.gv-change-email:hover {
    color: #00157D;
    text-decoration: underline;
}

.gv-login-username .gv-change-email:focus,
.gv-login-username a.gv-change-email:focus {
    outline: none;
}

.gv-login-username .gv-change-email:focus-visible,
.gv-login-username a.gv-change-email:focus-visible {
    color: #00157D;
    text-decoration: underline;
    box-shadow: 0 0 0 3px rgba(0, 110, 214, 0.18);
}

.gv-login-username .close {
    display: none;
}

.gv-navbar-dropdown-menu {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-width: 0 1px 1px 1px;
    border-color: #d7d7d7;
    border-radius: 3px;
    max-width: 320px;
    max-height: 437px;
    font-family: 'ArialMT', 'Arial';
    font-weight: 400;
    font-size: 13px;
    z-index: 10;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.149019607843137);
    overflow-y: auto;
}

div.gv-navbar-dropdown-menu {
    position: absolute;
    right: 17px;
    top: 50px;
    border: solid #d7d7d7;
    border-width: 0 1px 1px 1px;
}

.gv-navbar-dropdown-menu a {
    color: #666;
    align-self: center;
}

.gv-navbar-dropdown-menu div a:hover {
    cursor: pointer !important;
}

.gv-navbar-dropdown-menu span:first-child {
    color: #333;
}

.gv-navbar-dropdown-menu span:first-child {
    line-height: 19px;
}

.gv-navbar-dropdown-menu div img {
    height: 16px;
    width: 16px;
    margin-right: 10px;
    align-self: center;
}

.gv-navbar-dropdown-img {
    padding-top: 2px;
}

.gv-navbar-dropdown-select {
    height: 40px;
    width: 40px;
    background-color: #00157D;
    border-radius: 30px;
    text-align: center;
    margin-bottom: 2px;
}

.gv-navbar-dropdown-select:hover {
    background-color: #4E8095;
}

.gv-is-active .gv-navbar-dropdown-select {
    background-color: #4E8095;
}

.gv-navbar-dropdown-menu-user {
    padding: 0 !important;
    width: 188px;
}

.gv-dropdown-logout-option {
    border-top: 1px solid #E4E4E4;
}

.gv-navbar-dropdown-apps {
    margin-right: 10px;
}

.gv-navbar-dropdown-menu-apps a {
    color: #4E8095;
    text-align: center;
    font-weight: 400;
    font-size: 13px;
}

.gv-navbar-dropdown-menu-apps img {
    height: 36px !important;
    width: 36px !important;
    margin: 0 0 10px 0 !important;
}

.gv-navbar-dropdown-option {
    max-height: 41px;
    display: flex;
    padding: 15px;
}

.gv-navbar-dropdown-menu #gv-navbar-logout {
    padding-bottom: 2px;
}

.gv-dropdown-inner {
    padding: 12px 15px 12px 15px;
}

.gv-navbar-dropdown-select {
    height: 40px;
    width: 40px;
    background-color: #00157D;
    border-radius: 30px;
    text-align: center;
    margin-bottom: 2px;
    cursor: pointer;
}

.gv-navbar-dropdown-select:hover {
    background-color: #4E8095;
}

.gv-is-active .gv-navbar-dropdown-select {
    background-color: #4E8095;
}

.gv-navbar-dropdown.gv-is-active .gv-navbar-dropdown-menu {
    display: block;
}

.gv-navbar-dropdown .gv-navbar-dropdown-menu {
    display: none;
}

.gv-dropdown-username {
    font-weight: 600 !important;
    text-decoration: none !important;
}

.gv-dropdown-username, .gv-dropdown-username span {
    color: #00157D !important;
}

.gv-dropdown-username, .gv-dropdown-username span {
    color: #00157D !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.gv-nav-bar-primary {
    max-height: 35px;
    background-color: #e6e6e6;
    border-style: solid;
    border-width: 0 0 1px 0;
    border-color: #d7d7d7;
    width: 100%;
    display: flex;
}

.gv-nav-bar-primary div {
    padding-left: 15px;
    padding-right: 15px;
}

.gv-nav-bar-primary ul {
    list-style: none;
    padding: 3px 10px 10px 0px;
    float: left;
}

.gv-nav-bar-primary ul li a {
    padding: 15px 16px 15px 0;
    text-decoration: none;
    color: #00157D;
}

.gv-nav-bar-primary ul li a:hover {
    font-weight: 600;
}

.gv-nav-bar-primary div div ul li {
    float: left;
    margin: 0;
    display: block;
}

.gv-navbar-circle {
    height: 30px;
    width: 30px;
    background-color: #CDE8ED;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    flex-direction: row;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px auto auto auto;
}

.gv-navbar-circle span {
    color: #00157D !important;
    max-width: 10px;
}

.gv-navbar-circle-inner-container {
    display: flex;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.gv-navbar-initials {
    text-transform: uppercase;
    font-style: normal;
    font-size: 14px;
    color: rgba(0,63,93,0.8);
}

.gv-navbar-arrow {
    cursor: pointer;
}

.gv-navbar-apps {
    max-width: 99px;
}

.gv-navbar-apps:hover {
    text-decoration: none;
}

.gv-navbar-label {
    flex-direction: row;
    display: flex;
    vertical-align: middle;
    margin-bottom: 0;
}

.gv-navbar-label span {
    color: #7F9FAE;
    font-size: 12px;
    align-self: center;
    padding-left: 5px;
}

.gv-navbar-label img {
    padding-top: 7px;
}


.gv-nav-bar-secondary {
    max-height: 35px;
    padding: 10px 0 0 0 !important;
    float: left;
    width: 100%;
    margin-bottom: 15px;
}

.gv-nav-bar-secondary ul {
    list-style: none;
    border-style: solid;
    border-width: 0 0 1px 0;
    border-color: #f2f2f2;
    padding: 0px 0px 10px;
    display: flex;
}

.gv-nav-bar-secondary ul li {
    float: left;
    margin: 0;
    display: block;
}

.gv-nav-bar-secondary ul li a {
    text-decoration: none;
    color: #00157D;
    padding: 0px 0 9px 0;
    margin-right: 16px;
    font-weight: 600;
}

.gv-nav-bar-secondary ul .active a {
    border: solid rgba(0, 110, 214, 1);
    border-width: 0 0 2px 0;
}

.gv-nav-bar-secondary div div ul,
.gv-nav-bar-secondary .row div {
    padding-left: 0;
}

.gv-navbar-scrollable {
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

.gv-navbar-scrollable::-webkit-scrollbar {
    display: none;
}

.gv-row-instance {
    flex-direction: row;
    display: flex;
}

.gv-col-instance {
    flex-direction: column;
    display: flex;
    padding: 10px 5px;
    border: 1px solid #fff;
    cursor: pointer;
    width: 90.33px;
    height: 104px;
}

.gv-col-instance:hover {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.gv-align-right {
    display: flex;
    justify-content: flex-end
}

.gv-align-left {
    display: flex;
    justify-content: flex-start;
}

.gv-align-middle {
    display: flex;
    align-items: center;
}

.gv-placeholder {
    /* Width/radius/height come from modern .form-control rules */
    margin-bottom: 10px;
}

.gv-nav-title {
    color: #fff;
}

.gv-inner-container {
    padding: 0;
}

.gv-clear-container {
    padding-right: 0;
    padding-left: 0;
}

.gv-border-none {
    border-width: 0 !important;
}

.gv-height-unset {
    height: unset;
}

.gv-small-l-margin {
    margin-left: 20%;
}

.gv-mobile-show {
    display: none;
}

.row {
    overflow: hidden;
}

.container-fluid, .gv-section-container {
    height: 100%;
    font-family: 'OpenSans', 'Open Sans';
}

.gv-xtr-wide {
    width: auto !important;
}

.gv-xtr-thin {
    display: flex;
    height: 218px;
}

.gv-section-logged-in div.validation-summary-errors ul {
    margin: 5px 0 0 0;
}

.gv-section-logged-in .validation-summary-errors {
    font-size: 14px;
}

.gv-section-logged-in .alert-success {
    background-color: #b4dbb3;
    margin: 5px 0 0 0;
}

    .gv-section-logged-in .alert-success,
    .gv-section-logged-in .alert-success button,
    .gv-section-logged-in .alert-success button:hover {
        color: #005000;
        opacity: 1;
    }

.gv-section-form div.validation-summary-errors ul {
    margin-bottom: 0;
}

.gv-section-logged-in span.text-danger,
.gv-section-logged-in div.text-danger {
    font-size: 10px;
}

input.gv-parsley-error {
    border: 1px solid #B94A48 !important;
}

.gv-parsley-required {
    color: #f00;
    font-weight: 400;
    font-size: 16px;
    display: block;
}

.gv-parsley-errors-list {
    display: inline-block;
    padding-left: 5px;
}

#gv-qrCode {
    margin: 15px;
}

.gv-grid-item {
    width: 200px;
    height: 200px;
    color: black;
    border: 1px solid #939393;
    box-shadow: 2px 5px #D3D3D3;
    text-align: center;
    align-content: center;
    display: inline-block;
    padding-top: 90px;
}

.gv-grid-item--width2 {
    width: 400px;
}

.gv-grid-item:hover,
.gv-grid-item:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.gv-grid-item-selected {
    width: 200px;
    height: 200px;
    color: black;
    border: 1px solid black;
    box-shadow: 2px 5px black;
    text-align: center;
    align-content: center;
    display: inline-block;
    padding-top: 90px;
    background-color: #D3D3D3;
}

.gv-confirm-box {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.gv-confirm-box-content {
    position: relative;
    background-color: #fefefe;
    margin: 15% auto;
    padding: 0;
    border: 1px solid #888;
    width: 40%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}

.gv-confirm-box-header {
    padding: 2px 16px;
    background-color: #00157D;
    color: white;
}

.gv-confirm-box-body {
    padding: 2px 16px 10px;
}

.gv-confirm-box-footer {
    padding: 2px 16px;
    color: white;
}

.glyphicon {
    font-family: 'Glyphicons Halflings' !important;
}

/* Media queries */
@media (max-width: 1536px) {
    .gv-user-services-inner {
        padding: 20px 18px !important;
    }
}

@media (max-width: 992px) {
    .gv-login-aside {
        display: none;
    }

    .gv-login-panel {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .gv-section-highlighted-sidebar {
        display: none;
    }

    .col-container {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .gv-small-l-margin {
        margin-left: auto;
        margin-right: auto;
    }

    .gv-logo-container {
        text-align: center;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .gv-login-panel {
        padding: 24px 20px 40px;
    }

    .gv-small-l-margin {
        margin-left: auto;
        margin-right: auto;
        width: 60%;
    }

    h1 {
        font-size: 28px;
    }
    
    .gv-section-title {
        white-space: normal;
    }

    .gv-white-box {
        margin-bottom: 20px;
    }

    .gv-box {
        margin-bottom: 20px;
    }
}

@media (max-width: 425px) {
    .gv-section-form-logged-in label {
        padding-left: 0;
    }
}

@media (max-width: 415px) {
    .gv-mobile-hide {
        display: none;
    }

    .gv-mobile-show {
        display: flex;
    }

    .gv-section-form-container {
        display: flex;
        align-items: flex-start;
    }

    .gv-main-header-logo-small {
        display: flex;
    }

    .gv-main-header-logo-big {
        display: none;
    }

    .gv-mobile-hide {
        display: none;
    }

    .gv-mobile-show {
        display: flex;
    }

    .gv-mobile-row input {
        width: 70% !important;
        margin: 1px 6px 0 0;
    }

    .gv-mobile-row button {
        width: 25% !important;
    }

    .gv-section-form-validation {
        flex-direction: column;
        width: auto;
    }

    .gv-mobile-row {
        flex-direction: row;
    }

    .gv-section-form-validation button {
        margin-left: 0px;
        margin-bottom: 10px;
    }

    .gv-mobile-large {
        display: flex;
        align-items: flex-start;
    }

    .gv-button-large {
        width: 260px;
    }

    .gv-section-form-container {
        display: flex;
        align-items: flex-start;
        width: 100%;
    }

    .gv-small-l-margin {
        width: 100%;
    }

    .gv-section-content {
        width: auto; 
    }

    .gv-navbar-scrollable {
        overflow-x: auto;
        -webkit-mask-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 99%);
    }
}

@media (max-width: 321px) {
    ._LoggedIn-main-title {
        display: inline-grid;
    }
}
/* ===== Keycloak isolation — prevent stock KC/PF styles from leaking ===== */
body.login-pf,
.login-pf body,
.login-pf {
    background: #fff !important;
    background-image: none !important;
}
#kc-header,
#kc-header-wrapper,
.login-pf-page-header,
.card-pf,
.login-pf-header,
div.kc-logo-text {
    display: none !important;
}
.login-pf-page,
.login-pf-page .card-pf {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
}
#kc-content,
#kc-content-wrapper,
#kc-form,
#kc-form-wrapper,
#kc-main {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
/* PatternFly form resets that break Bootstrap inputs */
.pf-c-form-control,
.pf-v5-c-form-control {
    all: unset;
}

/* ---------------------------------------------------------------------------
   Modern form controls — Gold-Vision SSO redesign
   --------------------------------------------------------------------------- */
.gv-section-form label.gv-strong-4,
.gv-section-form .gv-strong-4 {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    letter-spacing: 0;
}

.gv-section-form .form-control,
.gv-section-content .form-control,
.gv-section-form input.form-control,
#kc-form-login .form-control,
#kc-register-form .form-control,
#kc-reset-password-form .form-control,
#kc-passwd-update-form .form-control {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    height: 48px;
    padding: 0 14px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #333333;
    background-color: #fff;
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    box-shadow: none;
    transition: border-color 140ms ease, box-shadow 140ms ease;
    -webkit-appearance: none;
    appearance: none;
}

/* Flex rows were shrinking inputs to intrinsic size (~20ch) */
.gv-section-form .gv-section-row > .form-control,
.gv-section-form .gv-section-row > .gv-ms-signin,
.gv-section-form .gv-section-row > a.gv-button,
.gv-section-footer .gv-section-row > .form-control {
    flex: 1 1 auto;
    width: 100% !important;
    min-width: 0;
    max-width: 100% !important;
}

.gv-section-form .form-control::placeholder,
.gv-section-content .form-control::placeholder {
    color: #8C8C8C;
    opacity: 1;
}

.gv-section-form .form-control:hover,
.gv-section-content .form-control:hover {
    border-color: #B0B0B0;
}

.gv-section-form .form-control:focus,
.gv-section-content .form-control:focus,
#kc-form-login .form-control:focus,
#kc-register-form .form-control:focus,
#kc-reset-password-form .form-control:focus,
#kc-passwd-update-form .form-control:focus {
    border-color: #006ED6 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 110, 214, 0.18) !important;
}

.gv-section-form .form-control:focus-visible,
.gv-section-content .form-control:focus-visible,
#kc-form-login .form-control:focus-visible,
#kc-register-form .form-control:focus-visible,
#kc-reset-password-form .form-control:focus-visible,
#kc-passwd-update-form .form-control:focus-visible {
    border-color: #006ED6 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 110, 214, 0.18) !important;
}

.gv-section-form .text-danger {
    margin-top: 6px;
    font-size: 13px;
    color: #c0392b;
}

.gv-field {
    margin-bottom: 14px;
}

.gv-login-stack .gv-field {
    margin-bottom: 0;
}

.gv-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.gv-login-stack > .gv-actions-row {
    margin-top: -10px;
}

.gv-login-stack {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.gv-required {
    color: #c0392b;
    font-weight: 700;
    margin-left: 2px;
}

.gv-field-error {
    margin-top: 6px;
    font-size: 13px;
    color: #c0392b;
    line-height: 1.35;
}

/* Global session/auth messages (timeout, etc.) — single surface, match form tone */
.gv-banner {
    margin: 0 0 16px 0;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    font-family: "Open Sans", sans-serif;
}

.gv-banner-error {
    color: #c0392b;
    background: #fdf4f3;
    border: 1px solid #f0c9c4;
}

.gv-banner-success {
    color: #1e6b3a;
    background: #f1f8f3;
    border: 1px solid #c6e2d0;
}

.gv-banner-warning {
    color: #8a5a00;
    background: #fff8eb;
    border: 1px solid #f0d9a8;
}

.gv-banner-info {
    color: #00157D;
    background: #F0F5FA;
    border: 1px solid #C5D6F0;
}

.gv-login-help {
    margin: 0 0 16px 0;
}

.gv-login-help p {
    margin: 0;
    font-weight: 400;
}

.gv-login-help .gv-login-help-title,
.gv-login-help strong {
    font-weight: 700;
}

.gv-login-help .gv-login-help-title {
    margin-bottom: 4px;
}

.gv-section-content .gv-login-help a,
.gv-section-form .gv-login-help a,
.gv-login-help a {
    color: #006ED6;
    font-size: inherit;
    font-weight: 600;
    text-decoration: underline;
}

/* Password strength (register) — match modern form language */
.gv-pw-strength {
    display: none;
    margin-top: 10px;
    padding: 12px;
    background: #f4f7f8;
    border: 1px solid #e2e8eb;
    border-radius: 8px;
}

.gv-pw-strength.is-visible {
    display: block;
}

.gv-pw-strength-track {
    height: 6px;
    background: #e2e8eb;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.gv-pw-strength-bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: #94a3b8;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.gv-pw-strength-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #00157D;
    margin-bottom: 8px;
}

.gv-pw-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.gv-pw-checklist li {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gv-pw-checklist li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
}

.gv-pw-checklist li.is-met {
    color: #167a3a;
}

.gv-pw-checklist li.is-met::before {
    background: #43a047;
}

.gv-pw-checklist li.is-unmet {
    color: #64748b;
}

.gv-section-form .form-control.is-invalid,
#kc-register-form .form-control.is-invalid,
#kc-form-login .form-control.is-invalid,
#kc-reset-password-form .form-control.is-invalid,
#kc-passwd-update-form .form-control.is-invalid {
    border-color: #c0392b !important;
}

.gv-section-form .form-control.is-invalid:focus,
.gv-section-form .form-control.is-invalid:focus-visible,
#kc-register-form .form-control.is-invalid:focus,
#kc-register-form .form-control.is-invalid:focus-visible,
#kc-form-login .form-control.is-invalid:focus,
#kc-form-login .form-control.is-invalid:focus-visible,
#kc-reset-password-form .form-control.is-invalid:focus,
#kc-reset-password-form .form-control.is-invalid:focus-visible,
#kc-passwd-update-form .form-control.is-invalid:focus,
#kc-passwd-update-form .form-control.is-invalid:focus-visible {
    border-color: #c0392b !important;
    outline: none;
    /* One ring only — match error colour instead of teal + red clash */
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.28) !important;
}

.validation-summary-errors {
    margin: 0 0 16px 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fdf4f3;
    border: 1px solid #f0c9c4;
    color: #c0392b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    font-family: "Open Sans", sans-serif;
}

.validation-summary-errors ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    overflow: visible;
}

.validation-summary-errors li {
    text-align: left;
    color: #c0392b;
    font-weight: 600;
}

.validation-summary-errors li + li {
    margin-top: 6px;
}

/* Text links only — do not restyle button-like anchors (session expired, IdPs, etc.). */
.gv-section-form a:not(.gv-button):not(.gv-ms-signin):not(.gv-idp-btn):not(.gv-passkey-btn),
.gv-section-content a:not(.gv-button):not(.gv-ms-signin):not(.gv-idp-btn):not(.gv-passkey-btn) {
    font-size: 14px;
    font-weight: 500;
    color: #006ED6;
    text-decoration: none;
}

.gv-section-form a:not(.gv-button):not(.gv-ms-signin):not(.gv-idp-btn):not(.gv-passkey-btn):hover,
.gv-section-content a:not(.gv-button):not(.gv-ms-signin):not(.gv-idp-btn):not(.gv-passkey-btn):hover {
    color: #00157D;
    text-decoration: underline;
}

.gv-section-content .gv-banner.gv-login-help a:not(.gv-button):not(.gv-ms-signin),
.gv-section-form .gv-banner.gv-login-help a:not(.gv-button):not(.gv-ms-signin) {
    color: #006ED6;
    font-size: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.gv-register-copy {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333333;
}

/* Modals (passkey name, etc.) */
body.gv-modal-open {
    overflow: hidden;
}

.gv-modal[hidden] {
    display: none !important;
}

.gv-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.gv-modal-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: transparent;
    backdrop-filter: blur(var(--blur-xs, 4px));
    -webkit-backdrop-filter: blur(var(--blur-xs, 4px));
}

.gv-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    padding: 24px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(1, 72, 104, 0.10);
    box-shadow: 0 16px 40px rgba(1, 72, 104, 0.18);
}

.gv-modal-title {
    margin: 0 0 8px;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #00157D;
}

.gv-modal-body {
    margin: 0 0 16px;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #4a5f69;
}

.gv-modal-label {
    display: block;
    margin: 0 0 6px;
    color: #00157D;
    font-family: "Open Sans", sans-serif;
    font-size: 13px;
    font-weight: 600 !important;
}

.gv-modal-input {
    width: 100%;
    margin: 0 0 22px;
}

.gv-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.gv-modal-actions .gv-button {
    margin: 0;
    min-width: 96px;
}

/* ----- OTP digit boxes (email + authenticator codes) ----- */
.gv-otp-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    max-width: 370px;
}

.gv-otp-digits {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    max-width: 370px;
}

/* Fixed square cells in one row — do not inherit full-width form input rules */
.gv-otp-digit,
.gv-section-form input.gv-otp-digit,
#kc-otp-login-form input.gv-otp-digit {
    box-sizing: border-box !important;
    display: block !important;
    flex: 0 0 48px !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #d0d7dc !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    color: #00157D !important;
    font-family: "Montserrat", "Open Sans", sans-serif !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    font-style: normal !important;
    line-height: 46px !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-rendering: auto !important;
    outline: none !important;
    box-shadow: none !important;
    caret-color: #006ED6;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    -webkit-appearance: none;
    appearance: textfield;
    -moz-appearance: textfield;
}

.gv-otp-digit::-webkit-outer-spin-button,
.gv-otp-digit::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.gv-otp-digit:hover {
    border-color: #a8b8c0 !important;
}

.gv-otp-digit:focus,
.gv-otp-digit:focus-visible,
.gv-section-form input.gv-otp-digit:focus,
.gv-section-form input.gv-otp-digit:focus-visible,
#kc-otp-login-form input.gv-otp-digit:focus,
#kc-otp-login-form input.gv-otp-digit:focus-visible {
    border-color: #006ED6 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 110, 214, 0.35) !important;
    background-color: #fff !important;
}

.gv-otp-digit.is-filled {
    background-color: #F8FBFD !important;
    border-color: #C5D6F0 !important;
}

.gv-otp-digit.is-filled:focus,
.gv-otp-digit.is-filled:focus-visible {
    background-color: #fff !important;
    border-color: #006ED6 !important;
}

.gv-otp-actions {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

@media (max-width: 480px) {
    .gv-otp-digits {
        gap: 6px;
    }
    .gv-otp-digit,
    .gv-section-form input.gv-otp-digit,
    #kc-otp-login-form input.gv-otp-digit {
        flex: 0 0 42px !important;
        width: 42px !important;
        min-width: 42px !important;
        max-width: 42px !important;
        height: 42px !important;
        font-size: 18px !important;
        line-height: 40px !important;
    }
}

/* Strip Bootstrap/CDN black focus boxes on all login controls. */
*:focus,
*:focus-visible,
a:focus,
a:focus-visible,
button:focus,
button:focus-visible,
button:active:focus,
.btn:focus,
.btn.focus,
.btn:active:focus,
.btn.active:focus,
input:focus,
input:focus-visible,
select:focus,
textarea:focus,
.gv-button:focus,
.gv-button:focus-visible,
.gv-form-input input[type="checkbox"]:focus,
.gv-form-input input[type="checkbox"]:focus-visible,
.gv-section-remember-me input[type="checkbox"]:focus,
.gv-section-remember-me input[type="checkbox"]:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
}

a:focus,
a:focus-visible,
button:focus,
button:focus-visible,
.btn:focus,
.btn.focus,
.btn:active:focus,
.btn.active:focus,
.gv-button:focus,
.gv-button:focus-visible,
input[type="checkbox"]:focus,
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus,
input[type="radio"]:focus-visible,
input[type="button"]:focus,
input[type="submit"]:focus {
    box-shadow: none !important;
}

