/* Sinotech Marine auth — colors from sinotech-logo-blue.webp
   Primary #0c5c94 · Accent #2f6f9e (readable) · Highlight #4d8fbd · Text #1B2A4A */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --st-navy: #0c5c94;
    --st-navy-mid: #0a4f7c;
    --st-cyan: #4d8fbd;
    --st-accent: #2f6f9e;
    --st-sky: #2f6f9e;
    --st-bg: #eef3f8;
    --st-text: #1b2a4a;
    --st-muted: #334155;
    --st-border: #d7e0ea;
    --st-card: #ffffff;
    /* Light tokens for navy / dark panels */
    --st-on-dark: #ffffff;
    --st-on-dark-soft: #e8f2f9;
    --st-on-dark-muted: #c5d9ea;
    --st-on-dark-accent: #9ed7f2;
    --st-placeholder: #475569;
}

body.auth-page {
    font-family: Inter, "Segoe UI", Roboto, sans-serif;
    background: var(--st-bg);
    color: var(--st-text);
    min-height: 100vh;
}

body.auth-page a {
    color: var(--st-navy);
}

body.auth-page a:hover {
    color: var(--st-accent);
}

/* Auth flow (register / forgot): solid app bar */
body.auth-flow .navbar,
body.auth-flow .navbar.scrolling-navbar {
    background: #fff !important;
    box-shadow: 0 1px 0 rgba(12, 92, 148, 0.08) !important;
}

@media (min-width: 992px) {
    body.auth-flow .navbar,
    body.auth-flow .navbar.scrolling-navbar {
        background: #fff !important;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    body.auth-flow .navbar .logo-light {
        display: none !important;
    }

    body.auth-flow .navbar .logo-dark {
        display: block !important;
    }

    body.auth-flow .navbar .nav-item .nav-link {
        color: var(--st-navy) !important;
        text-transform: none;
        font-weight: 500;
        font-size: 14px;
        letter-spacing: 0;
    }

    body.auth-flow .navbar .nav-item .nav-btn.btn-outline-blue {
        color: var(--st-navy) !important;
        background: transparent !important;
        border: 1px solid var(--st-navy) !important;
        border-radius: 6px;
        text-transform: none;
        box-shadow: none !important;
        height: auto;
        line-height: 1.2;
        font-size: 13px;
        font-weight: 600;
    }

    body.auth-flow .navbar .nav-item .nav-btn.btn-outline-blue:hover {
        color: #fff !important;
        background: var(--st-navy) !important;
        box-shadow: none !important;
    }
}

body.auth-flow .navbar .logo-light {
    display: none !important;
}

body.auth-flow .navbar .logo-dark {
    display: block !important;
}

body.auth-flow footer.page-footer,
body.auth-flow footer.page-footer .footer-copyright {
    background: var(--st-navy) !important;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

body.auth-flow footer.page-footer a {
    color: #fff;
}

/* Login: no marketing chrome */
body.is-login {
    margin: 0;
    padding: 0;
}

body.is-login footer.page-footer {
    display: none;
}

/* ========== Login shell ========== */
.si-login {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--st-bg);
}

.si-login-brand {
    flex: 1 1 46%;
    display: none;
    background: linear-gradient(165deg, #0f5388 0%, #0c5c94 48%, #4d8fbd 100%);
    color: #fff;
    position: relative;
}

.si-login-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 440px;
    margin: 0 auto;
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    justify-content: center;
}

.si-login-card-logo {
    display: block;
    margin: 0 auto 12px;
    text-align: center;
}

.si-login-card-logo img {
    display: block;
    margin: 0 auto;
    width: auto;
    height: auto;
    max-width: 180px;
    max-height: 52px;
    object-fit: contain;
}

.si-login-kicker {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c5e8f7;
    margin-bottom: 10px;
}

.si-login-brand h1 {
    font-family: Inter, sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--st-on-dark);
    margin: 0 0 20px;
    white-space: nowrap;
}

.si-login-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.si-login-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--st-on-dark-soft);
    margin-bottom: 10px;
}

.si-login-points li:last-child {
    margin-bottom: 0;
}

.si-login-points i {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: var(--st-on-dark);
    font-size: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.si-login-main {
    flex: 1 1 54%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 24px 20px;
}

.si-login-card {
    width: 100%;
    max-width: 400px;
    background: var(--st-card);
    border: 1px solid rgba(12, 92, 148, 0.08);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(12, 92, 148, 0.08);
    padding: 24px 28px 20px;
}

.si-login-card-head {
    text-align: center;
}

.si-login-card-head h2 {
    font-family: Inter, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--st-navy);
    margin: 0 0 16px;
    text-align: left;
}

.si-login-card-head p {
    color: var(--st-muted);
    font-size: 14px;
    margin: 0 0 16px;
}

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

.si-form-note {
    margin: 0 0 14px;
    font-size: 12px;
    color: var(--st-muted);
}

.si-req {
    color: #c62828;
    font-weight: 700;
}

.si-field-hint {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--st-muted);
}

.si-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--st-text);
    margin-bottom: 6px;
}

.si-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.si-label-row label {
    margin-bottom: 0;
}

.si-label-row a {
    font-size: 12px;
    font-weight: 600;
    color: var(--st-sky);
    text-decoration: none;
}

.si-label-row a:hover {
    text-decoration: underline;
}

.si-input {
    position: relative;
}

.si-input > i.fas {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #475569;
    font-size: 13px;
    pointer-events: none;
}

body.is-login .si-input .login-form-control {
    height: 46px;
    width: 100%;
    border: 1px solid var(--st-border);
    border-radius: 8px;
    padding: 0 14px 0 40px;
    font-size: 14px;
    color: var(--st-text);
    background: #fff;
    box-shadow: none;
}

body.is-login .si-input.password-field .login-form-control {
    padding-right: 42px;
}

body.is-login .si-input .login-form-control:focus {
    border-color: var(--st-accent);
    box-shadow: 0 0 0 3px rgba(77, 143, 189, 0.18);
    outline: 0;
}

body.is-login .password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #475569;
    width: 32px;
    height: 32px;
    cursor: pointer;
    padding: 0;
}

body.is-login .password-toggle:hover,
body.is-login .password-toggle:focus {
    color: var(--st-navy);
    outline: 0;
    box-shadow: none;
}

.si-slide {
    width: 100%;
    position: relative;
}

.si-slide-track {
    position: relative;
    height: 48px;
    border-radius: 8px;
    background: #eef3f8;
    border: 1px solid var(--st-border, #d5dde6);
    overflow: hidden;
    user-select: none;
    touch-action: none;
    outline: none;
}

.si-slide-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(12, 92, 148, 0.18), rgba(12, 92, 148, 0.35));
    transition: none;
}

.si-slide-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #5b6b7c;
    letter-spacing: 0.01em;
    pointer-events: none;
    z-index: 1;
}

.si-slide-label--done {
    display: none;
    color: #0c5c94;
}

.si-slide-knob {
    position: absolute;
    left: 2px;
    top: 2px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: #0c5c94;
    box-shadow: 0 1px 3px rgba(12, 92, 148, 0.2);
    cursor: grab;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.si-slide-knob:active {
    cursor: grabbing;
}

.si-slide-knob .si-slide-check {
    display: none;
}

.si-slide.is-dragging .si-slide-knob {
    cursor: grabbing;
}

.si-slide.is-verified .si-slide-track {
    border-color: rgba(12, 92, 148, 0.45);
    background: #e7f3fb;
}

.si-slide.is-verified .si-slide-fill {
    width: 100% !important;
    background: rgba(12, 92, 148, 0.2);
}

.si-slide.is-verified .si-slide-label {
    display: none;
}

.si-slide.is-verified .si-slide-label--done {
    display: flex;
}

.si-slide.is-verified .si-slide-knob {
    background: #0c5c94;
    color: #fff;
    cursor: default;
    box-shadow: none;
}

.si-slide.is-verified .si-slide-knob .fa-chevron-right {
    display: none;
}

.si-slide.is-verified .si-slide-knob .si-slide-check {
    display: inline-block;
}

.si-slide-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.si-slide--register .si-slide-track {
    border-radius: 0;
}

.si-slide--dark {
    margin-bottom: 18px;
}

.si-slide--dark .si-slide-track {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.35);
    border-radius: 0;
}

.si-slide--dark .si-slide-fill {
    background: linear-gradient(90deg, rgba(255, 224, 168, 0.2), rgba(255, 224, 168, 0.45));
}

.si-slide--dark .si-slide-label {
    color: rgba(255, 255, 255, 0.7);
}

.si-slide--dark .si-slide-knob {
    background: #12304a;
    color: #ffe0a8;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: none;
}

.si-slide--dark.is-verified .si-slide-track {
    background: rgba(255, 224, 168, 0.12);
    border-color: rgba(255, 224, 168, 0.55);
}

.si-slide--dark.is-verified .si-slide-label--done {
    color: #ffe0a8;
}

.si-slide--dark.is-verified .si-slide-knob {
    background: #ffe0a8;
    color: #083a5c;
    border-color: #ffe0a8;
}

body.is-login .si-login-submit.btn,
body.is-login button.si-login-submit {
    display: block;
    width: 100%;
    height: 46px;
    margin-top: 8px;
    background: var(--st-navy) !important;
    border: 0 !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    line-height: 46px !important;
}

body.is-login .si-login-submit.btn:hover,
body.is-login .si-login-submit.btn:focus {
    background: var(--st-navy-mid) !important;
    box-shadow: 0 8px 20px rgba(12, 92, 148, 0.22) !important;
}

.si-login-foot {
    text-align: center;
    margin: 14px 0 0;
    font-size: 14px;
    color: var(--st-muted);
}

body.is-login .enter_email_otp,
body.is-login .basic_details {
    display: none;
}

body.is-login .si-otp-meta {
    display: none;
    font-size: 13px;
    color: var(--st-muted);
    margin: -8px 0 16px;
}

body.is-login .si-otp-meta a {
    font-weight: 600;
    color: var(--st-sky);
}

body.is-login .si-reset-email {
    font-size: 13px;
    font-weight: 600;
    color: var(--st-navy);
    margin: 0 0 16px;
}

body.is-login .invalid-feedback,
body.is-login .si-otp-error {
    display: none;
    font-size: 12px;
    color: #c0392b;
    margin-top: 6px;
}

body.is-login .was-validated .login-form-control:invalid ~ .invalid-feedback,
body.is-login .was-validated .si-input + .invalid-feedback,
body.is-login .email-error:not(:empty) {
    display: block;
}

body.is-login .alert.bg-success:not(.si-flash) {
    background: #e8f7ee;
    color: #1e7a46;
    border: 0;
}

body.is-login .alert.bg-danger:not(.si-flash) {
    background: #fdecea;
    color: #a12622;
    border: 0;
}

.si-success-icon {
    width: 56px;
    height: 56px;
    margin: 8px auto 16px;
    border-radius: 50%;
    background: #e8f7ee;
    color: #1e7a46;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

body.is-login a.si-login-submit {
    display: block;
    width: 100%;
    height: 46px;
    margin-top: 8px;
    background: var(--st-navy) !important;
    border: 0 !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-align: center;
    text-decoration: none;
    line-height: 46px !important;
}

.si-login-foot a {
    font-weight: 600;
    color: var(--st-navy);
}

.si-login-legal {
    margin: 12px 0 0;
    font-size: 12px;
    color: #475569;
    text-align: center;
}

body.is-login #msg:empty {
    display: none;
}

body.is-login .alert:not(.si-flash) {
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
}

body.is-login .alert-danger:not(.si-flash) {
    background: #fdecea;
    color: #a12622;
    border: 0;
}

body.is-login .alert-success:not(.si-flash) {
    background: #e8f7ee;
    color: #1e7a46;
    border: 0;
}

/* Staff / admin console — high-contrast on navy panels */
body.st-ops {
    --ops-navy: #0c5c94;
    --ops-navy-deep: #083a5c;
    --ops-cyan: #2f6f9e;
    --ops-orange: #f7941d;
    --ops-accent-rgb: 47, 111, 158;
    --ops-on-dark: #ffffff;
    --ops-on-dark-soft: #e8f2f9;
    --ops-on-dark-muted: #c5d9ea;
    --ops-on-dark-accent: #9ed7f2;
    margin: 0;
    min-height: 100vh;
    font-family: "IBM Plex Sans", Inter, "Segoe UI", sans-serif;
    background: #eef3f8;
    color: #1b2a4a;
}

body.st-ops::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(12, 92, 148, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(12, 92, 148, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.st-ops-bar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    background: var(--ops-navy);
}

.st-ops-bar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.st-ops-mark {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: #fff;
    color: var(--ops-navy);
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.st-ops-bar-brand strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.st-ops-bar-brand span {
    display: block;
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ops-on-dark-accent);
}

.st-ops-restricted {
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffe0a8;
    border: 1px solid rgba(255, 224, 168, 0.65);
    padding: 6px 10px;
}

.st-ops-stage {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.st-ops-panel {
    width: 100%;
    max-width: 440px;
    background: var(--ops-navy);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 60px rgba(8, 58, 92, 0.28);
    padding: 28px 28px 24px;
}

.st-ops-panel-head {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.st-ops-lock {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.st-ops-kicker {
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ops-on-dark-accent);
    margin: 0 0 4px;
}

.st-ops-panel h1 {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 6px;
}

.st-ops-panel-head p:last-child {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ops-on-dark-soft);
}

.st-ops-field {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 6px;
}

.st-ops-input {
    width: 100%;
    height: 44px;
    margin-bottom: 16px;
    background: var(--ops-navy-deep);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 0 12px;
    font-size: 14px;
    border-radius: 0;
}

.st-ops-input::placeholder {
    color: rgba(255, 255, 255, 0.85) !important;
    opacity: 1;
}

.st-ops-input:focus {
    outline: 0;
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.st-ops-pass {
    position: relative;
}

.st-ops-toggle {
    position: absolute;
    right: 8px;
    top: 10px;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: var(--ops-on-dark-soft);
    cursor: pointer;
}

.st-ops-toggle:hover,
.st-ops-toggle:focus {
    color: #fff;
    outline: 0;
}

.st-ops-submit {
    width: 100%;
    height: 46px;
    border: 0;
    background: #fff;
    color: var(--ops-navy);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.st-ops-submit:hover,
.st-ops-submit:focus {
    background: var(--ops-on-dark-accent);
    color: #083a5c;
    outline: 0;
}

.st-ops-alt {
    margin: 18px 0 0;
    font-size: 13px;
    color: var(--ops-on-dark-soft);
}

.st-ops-alt a {
    color: #ffe0a8;
    font-weight: 700;
    text-decoration: underline;
}

.st-ops-alt a:hover {
    color: #fff;
}

.st-ops-foot {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 16px 24px;
    font-size: 12px;
    color: #334155;
    font-weight: 500;
}

body.st-ops .alert {
    border-radius: 0;
    font-size: 13px;
    margin-bottom: 16px;
}

body.st-ops .alert-danger {
    background: #5c1d1d;
    color: #ffe3e1;
    border: 1px solid #c45a56;
}

body.st-ops .alert-success {
    background: #1a3d28;
    color: #d4f0de;
    border: 1px solid #3d8a58;
}

@media (min-width: 992px) {
    .si-login-brand {
        display: block;
    }
}

@media (max-width: 991px) {
    .si-login-card {
        box-shadow: none;
        border: 0;
        padding: 12px 8px 8px;
        background: transparent;
    }

    .si-login-main {
        padding: 20px 16px 16px;
        background: #fff;
    }

    .si-register .si-register-card {
        background: #fff;
        border: 1px solid rgba(12, 92, 148, 0.08);
        box-shadow: 0 12px 32px rgba(12, 92, 148, 0.06);
        padding: 20px 16px 16px;
    }
}

/* ========== Register choice (/register) ========== */
.si-register .si-register-card {
    max-width: 440px;
}

.si-register-choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 4px 0 18px;
}

.si-register-choice {
    display: grid;
    grid-template-columns: 52px 1fr 18px;
    align-items: center;
    gap: 14px;
    padding: 14px 14px 14px 12px;
    border: 1px solid var(--st-border);
    border-radius: 12px;
    background: #fff;
    text-decoration: none !important;
    color: inherit !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.si-register-choice:hover,
.si-register-choice:focus {
    border-color: rgba(12, 92, 148, 0.35);
    box-shadow: 0 10px 28px rgba(12, 92, 148, 0.1);
    transform: translateY(-1px);
    color: inherit !important;
    outline: none;
}

.si-register-choice__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(160deg, #0c5c94 0%, #4d8fbd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    color: #fff;
    font-size: 20px;
}

.si-register-choice__icon--customer {
    background: linear-gradient(160deg, #0a4f7c 0%, #2f6f9e 100%);
}

.si-register-choice__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.si-register-choice__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--st-navy);
    line-height: 1.3;
}

.si-register-choice__desc {
    font-size: 13px;
    line-height: 1.45;
    color: var(--st-muted);
}

.si-register-choice__arrow {
    color: #94a3b8;
    font-size: 12px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.si-register-choice:hover .si-register-choice__arrow,
.si-register-choice:focus .si-register-choice__arrow {
    color: var(--st-navy);
    transform: translateX(2px);
}

/* ========== Register / create-account forms (inspector + customer) ========== */
body.auth-flow .form-body,
body.auth-flow .form-body.without-side {
    background: var(--st-bg) !important;
    overflow-x: hidden;
}

body.auth-flow .form-body .card,
body.auth-flow .form-body .card.card-body {
    background: var(--st-card) !important;
    border: 1px solid rgba(12, 92, 148, 0.08) !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 40px rgba(12, 92, 148, 0.08) !important;
    max-width: 100%;
    overflow: hidden;
}

body.auth-flow .form-body .container,
body.auth-flow .form-body .row {
    max-width: 100%;
}

body.auth-flow .form-body h3 {
    color: var(--st-navy) !important;
    font-weight: 700;
}

body.auth-flow .form-body > .container p,
body.auth-flow .form-body .card > .text-center p,
body.auth-flow .form-body .page-links,
body.auth-flow .form-body small {
    color: var(--st-muted) !important;
}

body.auth-flow .form-body label,
body.auth-flow .form-body .form-group > label,
body.auth-flow .form-body .form-check-label {
    color: var(--st-text) !important;
    font-weight: 600;
}

body.auth-flow .form-body .form-check-label {
    font-weight: 500;
}

body.auth-flow .form-body a,
body.auth-flow .form-body .page-links a,
body.auth-flow .form-body .form-check-label a {
    color: var(--st-navy) !important;
    font-weight: 600;
}

body.auth-flow .form-body a:hover,
body.auth-flow .form-body .page-links a:hover {
    color: var(--st-accent) !important;
}

body.auth-flow .form-body .btn-primary,
body.auth-flow .form-body .btn.btn-primary {
    background: var(--st-navy) !important;
    border-color: var(--st-navy) !important;
    color: #fff !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    text-transform: none !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
}

body.auth-flow .form-body .btn-primary:hover,
body.auth-flow .form-body .btn-primary:focus,
body.auth-flow .form-body .btn.btn-primary:hover,
body.auth-flow .form-body .btn.btn-primary:focus {
    background: var(--st-accent) !important;
    border-color: var(--st-accent) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(47, 111, 158, 0.28) !important;
}

body.auth-flow .form-body .login-form-control,
body.auth-flow .form-body .form-control,
body.auth-flow .form-body select.browser-default,
body.auth-flow .form-body input[type="number"] {
    border: 1px solid var(--st-border) !important;
    border-radius: 8px !important;
    color: var(--st-text) !important;
    background: #fff !important;
    box-shadow: none !important;
}

body.auth-flow .form-body .login-form-control:focus,
body.auth-flow .form-body .form-control:focus,
body.auth-flow .form-body select.browser-default:focus,
body.auth-flow .form-body input[type="number"]:focus {
    border-color: var(--st-accent) !important;
    box-shadow: 0 0 0 3px rgba(77, 143, 189, 0.18) !important;
    outline: 0;
}

body.auth-flow .register-sec a {
    color: var(--st-navy) !important;
    text-decoration: none;
    font-weight: 700;
}

body.auth-flow .register-sec a:hover {
    color: var(--st-accent) !important;
}

body.auth-flow .register-sec img {
    background-color: var(--st-navy) !important;
    box-shadow: 0 10px 24px rgba(12, 92, 148, 0.18);
}

body.auth-flow .register-sec:hover img {
    background-color: var(--st-accent) !important;
}

body.auth-flow .form-body .form-check-input:checked {
    background-color: var(--st-navy);
    border-color: var(--st-navy);
}

body.auth-flow #resend_otp_btn a,
body.auth-flow a.si-resend-link {
    color: var(--st-accent) !important;
    font-weight: 600;
    text-decoration: underline;
}

body.auth-flow #email,
body.auth-flow .otp_email {
    color: var(--st-navy) !important;
}

body.auth-flow .invalid-feedback,
body.auth-flow .email-error {
    color: #b42318 !important;
}


/* System-wide readability: placeholders + muted helpers */
body.auth-page ::placeholder,
body.auth-page ::-webkit-input-placeholder,
body.is-login .login-form-control::placeholder {
    color: #334155 !important;
    opacity: 1 !important;
}

body.is-login .si-input > i.fas,
body.is-login .password-toggle {
    color: #334155;
}

/* Never use mid-blue accent as text on navy brand panel */
.si-login-brand,
.si-login-brand a,
.si-login-brand .si-login-kicker,
.si-login-brand .si-login-points i {
    text-shadow: none;
}

body.is-login .si-login-card-head p,
body.is-login .si-login-foot,
body.is-login .si-otp-meta,
body.is-login .si-field .si-hint {
    color: #334155 !important;
}

body.is-login .si-label-row a,
body.is-login .si-otp-meta a,
body.is-login .si-login-foot a {
    color: var(--st-navy) !important;
    font-weight: 700;
}

body.auth-flow .form-body .page-links,
body.auth-flow .form-body small,
body.auth-flow .form-body .card > .text-center p {
    color: #334155 !important;
}

/* ========== Auth hover / interaction layer ========== */
body.auth-page a,
body.auth-page .btn,
body.auth-flow .btn,
body.st-ops .st-ops-submit,
body.st-ops .st-ops-alt a {
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

body.auth-page a:hover,
body.auth-page a:focus {
    color: var(--st-accent) !important;
}

body.auth-flow .navbar .nav-item .nav-btn.btn-outline-blue:hover,
body.auth-flow .navbar .nav-item .nav-btn.btn-outline-blue:focus {
    color: #fff !important;
    background: var(--st-navy) !important;
    border-color: var(--st-navy) !important;
    box-shadow: 0 6px 16px rgba(12, 92, 148, 0.2) !important;
}

body.is-login .si-login-submit.btn:hover,
body.is-login .si-login-submit.btn:focus,
body.is-login a.si-login-submit:hover {
    background: var(--st-accent) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(47, 111, 158, 0.28) !important;
}

body.auth-flow .form-body .btn-primary:hover,
body.auth-flow .form-body .btn-primary:focus {
    background: var(--st-accent) !important;
    border-color: var(--st-accent) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(47, 111, 158, 0.28) !important;
}

body.auth-flow .form-body a:hover,
body.auth-flow .register-sec a:hover,
body.auth-flow a.si-resend-link:hover {
    color: var(--st-navy-mid) !important;
}

body.auth-flow .register-sec:hover img {
    background-color: var(--st-accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(12, 92, 148, 0.22);
}

body.st-ops .st-ops-submit:hover,
body.st-ops .st-ops-submit:focus {
    background: var(--ops-on-dark-accent) !important;
    color: #083a5c !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

body.st-ops .st-ops-alt a:hover {
    color: #fff !important;
}

/* ========== Public inspector quotation (/inspector-quotation) ========== */
.si-quote.si-quote--full {
    display: block;
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(77, 143, 189, 0.18), transparent 55%),
        var(--st-bg);
}

.si-quote.si-quote--full .si-login-main {
    flex: none;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 32px 20px 28px;
}

.si-quote.si-quote--full .si-login-brand {
    display: none !important;
}

.si-quote .si-quote-card {
    max-width: 640px;
    margin: 0 auto;
    padding: 28px 32px 24px;
}

.si-quote.si-quote--full .si-login-card:not(.si-quote-card) {
    max-width: 440px;
    margin: 0 auto;
}

.si-quote-details {
    margin: 0 0 18px;
    padding: 14px 14px 12px;
    border: 1px solid var(--st-border);
    border-radius: 10px;
    background: #f8fafc;
}

.si-quote-details-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.si-quote-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7290a5;
}

.si-quote-ref {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #edf5fb;
    border: 1px solid #d5e4ef;
    color: var(--st-navy);
    font-size: 12px;
    font-weight: 700;
}

.si-quote-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    margin: 0;
}

.si-quote-facts dt {
    margin: 0 0 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #7290a5;
}

.si-quote-facts dd {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--st-text);
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.si-quote-remarks {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2ebf4;
}

.si-quote-remarks strong {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #7290a5;
}

.si-quote-remarks p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--st-muted);
}

.si-field-hint {
    font-weight: 500;
    color: #7290a5;
}

.si-quote-amount {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1px solid var(--st-border);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.si-quote-amount:focus-within {
    border-color: var(--st-accent);
    box-shadow: 0 0 0 3px rgba(77, 143, 189, 0.18);
}

.si-quote-currency {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    background: #edf5fb;
    border-right: 1px solid var(--st-border);
    color: var(--st-navy);
    font-size: 13px;
    font-weight: 700;
    flex: 0 0 auto;
}

body.is-login .si-quote-amount .login-form-control {
    height: 46px;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 14px;
    background: transparent;
}

body.is-login .si-quote-amount .login-form-control:focus {
    box-shadow: none !important;
}

body.is-login .si-quote-textarea.login-form-control {
    height: auto;
    min-height: 110px;
    padding: 12px 14px;
    resize: vertical;
    line-height: 1.45;
}

.si-quote-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 16px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--st-muted);
    cursor: pointer;
}

.si-quote-terms input {
    margin-top: 3px;
    flex: 0 0 auto;
}

.si-quote-terms a {
    font-weight: 600;
}

.si-quote-info-icon {
    width: 56px;
    height: 56px;
    margin: 8px auto 16px;
    border-radius: 50%;
    background: #edf5fb;
    color: var(--st-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

@media (max-width: 991px) {
    .si-quote.si-quote--full .si-login-main {
        padding: 20px 16px 16px;
        background: transparent;
    }

    .si-quote .si-quote-card,
    .si-quote.si-quote--full .si-login-card {
        background: #fff;
        border: 1px solid rgba(12, 92, 148, 0.08);
        box-shadow: 0 12px 32px rgba(12, 92, 148, 0.06);
        padding: 20px 16px 16px;
        max-width: 100%;
    }
}

@media (max-width: 575px) {
    .si-quote-facts {
        grid-template-columns: 1fr;
    }
}
