/* SIIC Portal Theme
 * Shared visual system for the incubation application, login, and future portal pages.
 */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

html {
    scroll-behavior: smooth;
}

:root {
    --siic-orange: #ff7a2f;
    --siic-orange-dark: #e96520;
    --siic-maroon: #6d3030;
    --siic-maroon-dark: #512323;
    --siic-ink: #171717;
    --siic-muted: #667085;
    --siic-surface: #ffffff;
    --siic-page: #f7f7f7;
    --siic-border: #e7e3e1;
}

body {
    background: var(--siic-page);
    color: var(--siic-ink);
    font-family:
        "Plus Jakarta Sans",
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.custom-form-width {
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.profile-img-wrap img {
    border-radius: 0;
}

#applicationForm {
    width: 100%;
    margin: 0 auto;
    text-align: left;
}

.application-card {
    border: 1px solid rgba(81, 35, 35, 0.08);
    border-radius: 20px;
    box-shadow: 0 16px 45px rgba(68, 33, 29, 0.1);
    overflow: hidden;
    margin-bottom: 24px;
}

.application-card .card-body {
    padding: 22px 30px 22px !important;
}

.form-progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.progress-step {
    position: relative;
    border: 0;
    background: #f4f1ef;
    color: #675f5b;
    border-radius: 9px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: default;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.progress-step .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 11px;
    margin-right: 7px;
    border-radius: 50%;
    background: #e5dfdc;
    color: #5f5651;
    flex-shrink: 0;
}

.progress-step.active {
    background: #fff0e7;
    color: var(--siic-orange-dark);
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
    background: var(--siic-orange);
    color: #fff;
}

.progress-step.completed {
    color: var(--siic-orange-dark);
}

.form-step {
    display: none;
    animation: stepFade 0.25s ease;
    font-size: 12.5px;
}

.form-step.active {
    display: block;
}

.step-heading {
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--siic-border);
}

.step-heading h3 {
    margin: 0 0 2px;
    color: var(--siic-maroon-dark);
    font-size: 17.5px;
    font-weight: 700;
}

.step-heading p {
    margin: 0;
    color: #667085;
    font-size: 12.5px;
}

.form-step fieldset {
    margin-bottom: 14px;
    padding: 12px 18px 14px !important;
    border: 1px solid var(--siic-border) !important;
    border-radius: 12px;
    background: #fffdfc;
}

.form-step fieldset legend {
    width: auto;
    padding: 0 8px;
    color: var(--siic-maroon-dark);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.form-step label {
    color: #344054;
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 4px;
}

.form-step .form-group {
    margin-bottom: 12px;
}

.form-step .mb-2 {
    margin-bottom: 10px !important;
}

.form-step hr {
    margin: 12px 0;
}

.form-step .form-control {
    min-height: 44px;
    height: 44px;
    border-color: #d8d2cf;
    border-radius: 8px;
    box-shadow: none;
    font-size: 12.5px;
    padding: 6px 12px;
}

.form-step select.form-control {
    height: 44px;
    font-size: 12.5px;
    padding: 5px 11px;
}

.form-step .form-control:focus {
    border-color: var(--siic-orange);
    box-shadow: 0 0 0 3px rgba(255, 122, 47, 0.14);
}

.form-step .form-control.is-invalid-field {
    border-color: #dc3545;
    background-image: none;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-step .form-control.is-valid-field {
    border-color: #198754;
    background-image: none;
}

.realtime-error,
.invalid-feedback,
.invalid-det {
    display: block;
    margin-top: 3px;
    color: #c62828;
    font-size: 11px;
    font-weight: 500;
    white-space: normal;
}

.form-step textarea.form-control {
    min-height: 56px;
    font-size: 12.5px;
    padding: 7px 11px;
}

.company-logo-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 130px;
    padding: 12px;
    border: 1px dashed #d8c8c2;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.company-logo-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(74px, 4vw);
    height: min(74px, 4vw);
    margin: 0 auto 8px;
    overflow: hidden;
    border: 2px solid #f0dfd8;
    border-radius: 12px;
    background: #f8f3f1;
    cursor: pointer;
}

.company-logo-preview img {
    width: 100%;
    height: 100%;
    border: 0 !important;
    border-radius: 0 !important;
    object-fit: contain;
}

.company-logo-edit {
    position: absolute;
    right: 4px;
    bottom: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 11px;
    border-radius: 50%;
    background: var(--siic-orange);
    color: #fff;
    box-shadow: 0 2px 6px rgba(81, 35, 35, 0.2);
}

.company-logo-title {
    margin-bottom: 3px;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
}

.company-logo-help {
    max-width: 180px;
    margin: 0;
    color: #c62828;
    font-size: 9.5px;
    font-style: normal;
    line-height: 1.3;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--siic-border);
}

.step-actions .btn {
    min-width: 110px;
    padding: 7px 22px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

#applicationForm .btn-primary {
    border-color: var(--siic-orange);
    background: var(--siic-orange);
    color: #fff;
}

#applicationForm .btn-primary:hover,
#applicationForm .btn-primary:focus {
    border-color: var(--siic-orange-dark);
    background: var(--siic-orange-dark);
}

#applicationForm .btn-outline-primary {
    border-color: var(--siic-orange);
    color: var(--siic-orange-dark);
    border-radius: 999px;
}

#applicationForm .btn-outline-primary:hover {
    background: var(--siic-orange);
    color: #fff;
}

.hero-logo-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30vw;
    max-width: 42%;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0 !important;
    outline: 0;
    box-shadow: none;
    flex: 0 0 auto;
}

.hero-logo-panel img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    flex: 0 0 auto;
    overflow: visible;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    clip-path: none !important;
}

.application-hero {
    position: relative;
    overflow: hidden;
    padding: 26px 20px 60px !important;
    background: linear-gradient(
        115deg,
        var(--siic-maroon-dark),
        #7a3733 62%,
        #a95035
    );
    color: #fff;
    width: 100%;
}

.application-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    max-width: 1180px !important;
    margin: 0 auto !important;
    width: 100%;
}

.application-hero-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.application-hero .eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #ffb184;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.application-hero h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 4px;
    color: #fff;
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 600;
}

.application-hero p {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13.5px;
    line-height: 1.45;
}

.page-wrapper.job-wrapper {
    margin-left: 0 !important;
    padding-top: 0 !important;
    width: 100% !important;
    background: var(--siic-page);
}

.page-wrapper.job-wrapper > .content {
    position: relative;
    margin-top: -44px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 1180px !important;
    width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-bottom: 24px !important;
    box-sizing: border-box;
}

.form-step .table-responsive {
    border: 1px solid #e7ebf0;
    border-radius: 10px;
    margin-bottom: 12px;
}

.form-step table {
    width: 100%;
    margin-bottom: 0;
}

.form-step .table td,
.form-step .table th {
    padding: 7px 10px !important;
    font-size: 12.5px !important;
    vertical-align: middle !important;
}

@media (max-width: 991px) {
    .form-step .table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@keyframes stepFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Applied by JS only when the active step is taller than the viewport. */
@media (min-width: 768px) {
    body.siic-compact-form .application-card .card-body {
        padding: 14px 24px 12px !important;
    }

    body.siic-compact-form .form-progress {
        margin-bottom: 9px;
    }

    body.siic-compact-form .progress-step {
        padding-top: 6px;
        padding-bottom: 6px;
    }

    body.siic-compact-form .step-heading {
        margin-bottom: 7px;
        padding-bottom: 6px;
    }

    body.siic-compact-form .form-step fieldset {
        margin-bottom: 8px;
        padding: 8px 14px 9px !important;
    }

    body.siic-compact-form .form-step fieldset legend {
        margin-bottom: 1px;
    }

    body.siic-compact-form .form-step .form-group {
        margin-bottom: 7px;
    }

    body.siic-compact-form .form-step .mb-2,
    body.siic-compact-form .form-step .mb-3 {
        margin-bottom: 7px !important;
    }

    body.siic-compact-form .form-step hr {
        margin: 8px 0;
    }

    body.siic-compact-form .form-step .form-control,
    body.siic-compact-form .form-step select.form-control {
        min-height: 38px;
        height: 38px;
    }

    body.siic-compact-form .company-logo-upload {
        min-height: 108px;
        padding: 8px;
    }

    body.siic-compact-form .company-logo-preview {
        margin-bottom: 5px;
    }

    body.siic-compact-form .step-actions {
        margin-top: 8px;
        padding-top: 8px;
    }
}

@media (max-width: 767px) {
    .custom-form-width {
        width: 100%;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Hero Section */
    .application-hero {
        padding: 14px 12px 22px !important;
    }
    .application-hero-inner {
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    .application-hero-copy {
        flex: 1 1 55%;
        max-width: 55%;
    }
    .application-hero .eyebrow {
        margin-bottom: 3px;
        font-size: 7.5px;
        line-height: 1.2;
        letter-spacing: 0.06em;
        white-space: nowrap;
    }
    .application-hero h2 {
        margin-bottom: 3px;
        font-size: clamp(14px, 4.2vw, 17px);
        line-height: 1.12;
    }
    .application-hero p {
        display: -webkit-box;
        overflow: hidden;
        font-size: 8.5px;
        line-height: 1.3;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .hero-logo-panel {
        width: 43%;
        max-width: 43%;
        align-self: center;
        margin: 0 auto;
        padding: 0;
        border-radius: 0 !important;
        justify-content: center;
    }
    .hero-logo-panel img {
        width: 100%;
        max-height: 64px;
        margin: 0 auto 4px;
        object-fit: contain;
        object-position: center;
    }

    /* Card & Form */
    .application-card {
        border-radius: 14px;
        margin-bottom: 16px;
    }
    .application-card .card-body {
        padding: 14px 14px 18px !important;
    }

    /* Progress Steps — 2x2 grid on mobile */
    .form-progress {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 14px;
    }
    .progress-step {
        font-size: 12px;
        padding: 9px 8px;
        border-radius: 8px;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        min-height: 38px;
        line-height: 1.2;
        white-space: normal;
        word-break: break-word;
    }
    .progress-step .step-number {
        display: inline-flex;
        margin: 0 6px 0 0;
        flex-shrink: 0;
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    /* Step heading */
    .step-heading h3 {
        font-size: 16px;
    }
    .step-heading p {
        font-size: 12px;
    }

    /* Fieldsets */
    .form-step fieldset {
        padding: 10px 12px 12px !important;
        margin-bottom: 12px;
        border-radius: 10px;
    }
    .form-step fieldset legend {
        font-size: 13px;
    }

    /* Company logo upload */
    .company-logo-upload {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 12px;
    }
    .company-logo-preview {
        width: 54px;
        height: 54px;
    }

    /* Form controls */
    .form-step .form-control,
    .form-step select.form-control {
        height: 40px;
        min-height: 40px;
        font-size: 13px;
    }
    .form-step label {
        font-size: 11.5px;
    }
    .form-step .form-group {
        margin-bottom: 10px;
    }

    /* Company step: two form fields per row on phones. */
    #about_company > .row {
        margin-right: -5px;
        margin-left: -5px;
    }
    #about_company > .row > .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 8px !important;
        padding-right: 5px;
        padding-left: 5px;
    }
    #about_company > .row > .col-lg-4,
    #about_company > .row > .col-lg-5 {
        flex: 0 0 50%;
        max-width: 50%;
        padding-right: 5px;
        padding-left: 5px;
    }
    #about_company .company-logo-upload {
        min-height: 0;
        margin-bottom: 0;
        padding: 8px 10px;
        flex-direction: row;
        gap: 9px;
    }
    #about_company .company-logo-preview {
        flex: 0 0 54px;
        margin: 0;
    }
    #about_company .company-logo-title {
        margin: 0;
        white-space: nowrap;
    }
    #about_company .company-logo-help {
        max-width: 145px;
        text-align: left;
    }
    .form-step[data-step="0"] > .row.portal-text-left {
        margin-right: -5px;
        margin-left: -5px;
    }
    .form-step[data-step="0"] > .row.portal-text-left > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
        padding-right: 5px;
        padding-left: 5px;
    }
    .form-step[data-step="0"] label {
        font-size: 10.5px;
        line-height: 1.25;
    }
    .form-step[data-step="0"] .form-control,
    .form-step[data-step="0"] select.form-control {
        height: 38px;
        min-height: 38px;
        padding-right: 8px;
        padding-left: 8px;
        font-size: 11px;
    }

    /* Navigation buttons */
    .form-nav-btn {
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
    }
    .form-nav-actions {
        flex-direction: column;
        gap: 10px;
    }
}

/* Login page */

.portal-text-red {
    color: red;
}
.portal-text-left {
    text-align: left;
}
.portal-w-100 {
    width: 100%;
}
.portal-w-18 {
    width: 18%;
}
.portal-w-13 {
    width: 13%;
}
.portal-w-10 {
    width: 10%;
}
.portal-w-8 {
    width: 8%;
}
.portal-w-2 {
    width: 2%;
}
.portal-w-0 {
    width: 0%;
}
.portal-h-43 {
    height: 36px;
    padding: 4px 8px;
    font-size: 11.5px;
}

/* SIIC themed SweetAlert feedback */
.swal2-popup.siic-swal-popup {
    width: min(460px, calc(100vw - 32px));
    padding: 38px 34px 32px;
    border: 1px solid rgba(109, 48, 48, 0.16);
    border-radius: 24px;
    background: #fffdfc;
    box-shadow: 0 28px 80px rgba(68, 33, 29, 0.28);
    font-family:
        "Plus Jakarta Sans",
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.swal2-popup.siic-swal-popup .siic-swal-icon.swal2-success {
    border-color: rgba(255, 122, 47, 0.28);
    color: var(--siic-orange);
}

.swal2-popup.siic-swal-popup .swal2-success-ring {
    border-color: rgba(255, 122, 47, 0.24);
}

.swal2-popup.siic-swal-popup .swal2-success-line-tip,
.swal2-popup.siic-swal-popup .swal2-success-line-long {
    background-color: var(--siic-orange);
}

.swal2-popup.siic-swal-popup .siic-swal-title {
    margin: 8px 0 0;
    padding: 0;
    color: var(--siic-maroon-dark);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
}

.swal2-popup.siic-swal-popup .siic-swal-message {
    margin: 14px 0 0;
    color: var(--siic-muted);
    font-size: 15px;
    line-height: 1.65;
}

.swal2-popup.siic-swal-popup .siic-swal-confirm {
    min-width: 150px;
    margin-top: 24px;
    padding: 12px 26px;
    border: 1px solid var(--siic-orange);
    border-radius: 999px;
    background: var(--siic-orange);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.swal2-popup.siic-swal-popup .siic-swal-confirm:hover,
.swal2-popup.siic-swal-popup .siic-swal-confirm:focus {
    border-color: var(--siic-orange-dark);
    background: var(--siic-orange-dark);
    outline: none;
    transform: translateY(-1px);
}

@media (max-width: 575px) {
    .swal2-popup.siic-swal-popup {
        padding: 30px 22px 26px;
        border-radius: 18px;
    }

    .swal2-popup.siic-swal-popup .siic-swal-title {
        font-size: 24px;
    }
}

:root {
    --siic-orange: #ff7a2f;
    --siic-orange-dark: #e96520;
    --siic-maroon: #6d3030;
    --siic-maroon-dark: #512323;
    --siic-ink: #171717;
    --siic-muted: #667085;
    --siic-border: #ded8d4;
}
body.account-page {
    
    background: #f7f7f7;
    color: var(--siic-ink);
    font-family:
        "Plus Jakarta Sans",
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}
html:has(.siic-login-page),
body.account-page:has(.siic-login-page) {
    height: 100%;
    overflow: hidden;
}
.siic-login-page {
    display: grid;
    grid-template-columns: 47% 53%;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    margin: 0;
    overflow: hidden;
}
.siic-brand-panel {
    position: relative;
    display: flex;
    align-items: center;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    padding: 64px clamp(42px, 6vw, 110px);
    background: linear-gradient(
        135deg,
        var(--siic-maroon-dark),
        #743330 58%,
        #a64c32
    );
    color: #fff;
}
.siic-brand-panel::before {
    position: absolute;
    right: -180px;
    bottom: -220px;
    width: 520px;
    height: 520px;
    border: 90px solid rgba(255, 122, 47, 0.1);
    border-radius: 50%;
    content: "";
}
.brand-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 680px;
    transform: translateY(-42px);
}
.brand-logo {
    display: flex;
    align-items: center;
    width: min(600px, 100%);
    margin-bottom: 56px;
    padding: 18px 22px;
    border-radius: 16px;
    text-decoration: none;
}
.brand-logo-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}
.brand-logo-wrap img {
    display: block;
    width: 90px;
    height: auto;
    flex-shrink: 0;
    border: 0 !important;
    border-radius: 0 !important;
    object-fit: contain;
}
.brand-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-left: 2px solid rgba(255,255,255,0.3);
    padding-left: 16px;
}
.brand-logo-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}
.brand-logo-sub {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.brand-logo img {
    display: block;
    width: 100%;
    height: auto;
    border: 0 !important;
    border-radius: 0 !important;
    object-fit: contain;
}
.brand-eyebrow {
    display: block;
    margin-bottom: 14px;
    color: #ffb184;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
}
.brand-content h1 {
    max-width: 620px;
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(38px, 4.2vw, 64px);
    font-weight: 600;
    line-height: 1.08;
}
.brand-content p {
    max-width: 580px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 17px;
    line-height: 1.7;
}
.siic-login-panel {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding-bottom: 36px;
    box-sizing: border-box;
    background: #f7f7f7;
}
.mobile-login-hero,
.mobile-login-logo {
    display: none;
}
.login-card {
    position: absolute;
    top: 47%;
    left: 50%;
    width: calc(100% - 64px);
    max-width: 620px;
    min-height: 580px;
    padding: 56px 60px;
    background: #fff;
    border: 1.5px solid rgba(109, 48, 48, 0.2);
    border-radius: 26px;
    box-shadow:
        0 4px 14px -2px rgba(81, 35, 35, 0.08),
        0 16px 36px -4px rgba(81, 35, 35, 0.14),
        0 32px 72px -12px rgba(68, 33, 29, 0.22),
        0 0 40px -10px rgba(255, 122, 47, 0.08);
    transform: translate(-50%, -50%);
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}
.login-card:hover {
    border-color: rgba(109, 48, 48, 0.28);
    box-shadow:
        0 6px 18px -2px rgba(81, 35, 35, 0.1),
        0 20px 42px -4px rgba(81, 35, 35, 0.18),
        0 38px 80px -12px rgba(68, 33, 29, 0.26),
        0 0 50px -8px rgba(255, 122, 47, 0.12);
}
.powered-ribbon {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 47%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 15px 16px;
    border-top: 2px solid #d9aaa0;
    background: #f3e7e3;
    color: var(--siic-maroon);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-align: center;
}
.login-card h2 {
    margin: 0 0 10px;
    color: var(--siic-maroon-dark);
    font-size: 38px;
    font-weight: 700;
}
.login-subtitle {
    margin: 0 0 38px;
    color: var(--siic-muted);
    font-size: 17px;
    line-height: 1.6;
}
.login-card .form-group {
    margin-bottom: 26px;
}
.login-card label {
    margin-bottom: 10px;
    color: #344054;
    font-size: 16px;
    font-weight: 600;
}
.input-wrap {
    position: relative;
}
.input-wrap > i {
    position: absolute;
    top: 50%;
    left: 18px;
    z-index: 2;
    color: #8a817c;
    font-size: 19px;
    transform: translateY(-50%);
}
.login-card .form-control {
    height: 58px;
    padding: 14px 50px;
    border: 1px solid var(--siic-border);
    border-radius: 12px;
    box-shadow: none;
    color: var(--siic-ink);
    font-size: 16px;
}
.login-card .form-control:focus {
    border-color: var(--siic-orange);
    box-shadow: 0 0 0 3px rgba(255, 122, 47, 0.14);
}
.password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    z-index: 3;
    padding: 4px;
    border: 0;
    background: transparent;
    color: #7c736f;
    transform: translateY(-50%);
    cursor: pointer;
}
.forgot-row {
    display: flex;
    justify-content: flex-end;
    margin: -4px 0 30px;
}
.forgot-row a {
    color: var(--siic-orange-dark);
    font-size: 15px;
    font-weight: 600;
}
.forgot-row a:hover {
    color: var(--siic-maroon);
    text-decoration: none;
}
.login-submit {
    width: 100%;
    min-height: 58px;
    border: 1px solid var(--siic-orange);
    border-radius: 999px;
    background: var(--siic-orange);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    transition: 0.2s ease;
}
.login-submit:hover,
.login-submit:focus {
    border-color: var(--siic-orange-dark);
    background: var(--siic-orange-dark);
    color: #fff;
    transform: translateY (-1px);
}
.invalid-feedback {
    display: block;
    margin-top: 7px;
    color: #c62828;
    font-size: 14px;
}
.login-card.auth-card-compact {
    min-height: auto;
    top: 49%;
    padding: 48px 56px 42px;
}
.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--siic-muted);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-decoration: none;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}
.auth-back-link:hover {
    color: var(--siic-orange-dark);
    text-decoration: none;
    transform: translateX(-3px);
}
.auth-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(255, 122, 47, 0.12);
    color: var(--siic-orange);
    font-size: 22px;
    margin-bottom: 18px;
}
.auth-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    background: #fff8f4;
    border: 1px solid #fed7c3;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #704b39;
}
.auth-info-box i {
    color: var(--siic-orange);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}
.auth-footer-prompt {
    margin-top: 26px;
    text-align: center;
    font-size: 15px;
    color: var(--siic-muted);
}
.auth-footer-prompt a {
    color: var(--siic-orange-dark);
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
}
.auth-footer-prompt a:hover {
    color: var(--siic-maroon-dark);
    text-decoration: underline;
}
.brand-checklist {
    list-style: none;
    padding: 0;
    margin: 32px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.brand-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.92);
}
.brand-checklist li i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #ffb184;
    font-size: 12px;
    flex-shrink: 0;
}
@media (min-width: 992px) {
    .siic-brand-panel {
        padding-right: 5.75vw;
        padding-left: 5.75vw;
    }
    .brand-content {
        max-width: 35.5vw;
        transform: translateY(-4.5vh);
    }
    .brand-logo {
        width: 31.3vw;
        max-width: none;
        margin-bottom: 2.9vw;
        padding: 0.94vw 1.15vw;
        border-radius: 0.84vw;
    }
    .brand-eyebrow {
        margin-bottom: 0.73vw;
        font-size: 0.68vw;
    }
    .brand-content h1 {
        max-width: 32.4vw;
        margin-bottom: 1.04vw;
        font-size: 3.34vw;
    }
    .brand-content p {
        max-width: 30.3vw;
        font-size: 0.89vw;
    }
    .login-card {
        width: 32.3vw;
        max-width: none;
        min-height: 62vh;
        padding: 6vh 3.13vw;
        border-radius: 1.36vw;
    }
    .login-card.auth-card-compact {
        top: 47%;
        width: 32.3vw;
        max-width: none;
        height: 62vh;
        min-height: 62vh;
        padding: 4.6vh 3.13vw;
        border-radius: 1.36vw;
        box-sizing: border-box;
    }
    .login-card h2 {
        margin-bottom: 0.52vw;
        font-size: 1.98vw;
    }
    .login-subtitle {
        margin-bottom: 1.98vw;
        font-size: 0.89vw;
    }
    .login-card .form-group {
        margin-bottom: 1.36vw;
    }
    .login-card label {
        margin-bottom: 0.52vw;
        font-size: 0.835vw;
    }
    .input-wrap > i {
        left: 0.94vw;
        font-size: 0.99vw;
    }
    .login-card .form-control {
        height: 3.03vw;
        padding: 0.73vw 2.61vw;
        border-radius: 0.63vw;
        font-size: 0.835vw;
    }
    .password-toggle {
        right: 0.73vw;
    }
    .forgot-row {
        margin-bottom: 1.57vw;
    }
    .forgot-row a {
        font-size: 0.78vw;
    }
    .login-submit {
        min-height: 3.03vw;
        font-size: 0.89vw;
    }
    .auth-card-compact .auth-back-link {
        margin-bottom: 1.4vh;
        font-size: 0.73vw;
    }
    .auth-card-compact .auth-badge-icon {
        width: 2.82vw;
        height: 2.82vw;
        margin-bottom: 1.2vh;
        border-radius: 0.73vw;
        font-size: 1.15vw;
    }
    .auth-card-compact .auth-info-box {
        gap: 0.63vw;
        margin-bottom: 1.6vh;
        padding: 0.68vw 0.84vw;
        border-radius: 0.63vw;
        font-size: 0.7vw;
    }
    .auth-card-compact .auth-footer-prompt {
        margin: 1.2vh 0 0;
        font-size: 0.78vw;
        line-height: 1.2;
    }
    .auth-card-compact .login-subtitle {
        margin-bottom: 2.2vh;
    }
    .auth-card-compact .form-group {
        margin-bottom: 1.8vh;
    }
    .auth-card-compact form {
        margin-bottom: 0;
    }
}
@media (max-width: 991px) {
    .siic-login-page {
        display: block;
        width: 100vw !important;
        max-width: none !important;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        margin: 0 !important;
        background: #f7f7f7;
    }
    .siic-brand-panel {
        display: none;
    }
    .siic-login-panel {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100vw !important;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        margin: 0 !important;
        padding: 28px 20px !important;
        box-sizing: border-box;
    }
    .powered-ribbon {
        left: 0;
    }
    .login-card {
        position: static;
        width: 100% !important;
        max-width: 560px !important;
        min-height: auto;
        margin: 0 auto !important;
        padding: 38px 30px;
        box-sizing: border-box;
        transform: none;
    }
}
@media (max-width: 575px) {
    .siic-brand-panel {
        padding: 28px 20px 38px;
    }
    .brand-logo {
        padding: 12px;
        border-radius: 12px;
    }
    .brand-content p {
        font-size: 15px;
    }
    .login-card {
        z-index: 2;
        width: calc(100% - 24px) !important;
        max-width: 410px !important;
        margin: -42px auto 0 !important;
        padding: 28px 22px 24px;
        border: 0;
        border-radius: 28px;
        box-shadow: 0 18px 45px rgba(74, 44, 91, 0.18);
    }
    .siic-login-panel {
        flex-direction: column;
        justify-content: flex-start;
        gap: 0;
        padding: 0 16px 48px !important;
        background: #f8f6fb;
        overflow: hidden;
    }
    .mobile-login-hero {
        display: flex;
        width: calc(100% + 32px);
        min-height: 190px;
        margin: 0 -16px;
        padding: 20px 24px 58px;
        flex: 0 0 auto;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background:
            radial-gradient(circle at 18% 20%, rgba(255, 177, 132, 0.48), transparent 42%),
            radial-gradient(circle at 82% 12%, rgba(109, 48, 48, 0.16), transparent 46%),
            linear-gradient(135deg, #fff4ed 0%, #ffe0cf 54%, #efc4b8 100%);
        color: #512323;
        text-align: center;
    }
    .mobile-login-hero > span {
        margin-bottom: 2px;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.13em;
    }
    .mobile-login-hero > strong {
        margin-bottom: 8px;
        font-size: 15px;
        line-height: 1.2;
    }
    .mobile-login-logo {
        display: block;
        width: min(86vw, 340px);
        flex: 0 0 auto;
        padding: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
    .mobile-login-logo img {
        display: block;
        width: 100%;
        height: auto;
        max-height: none;
        overflow: visible;
        border: 0 !important;
        border-radius: 0 !important;
        outline: 0 !important;
        box-shadow: none !important;
        clip-path: none !important;
        object-fit: contain;
        object-position: center;
    }
    .login-card h2 {
        margin-bottom: 6px;
        font-size: 24px;
        text-align: center;
    }
    .login-subtitle {
        display: block;
        margin-bottom: 22px;
        font-size: 11px;
        line-height: 1.4;
        text-align: center;
    }
    .login-card .form-group {
        margin-bottom: 16px;
    }
    .login-card label {
        margin-bottom: 6px;
        font-size: 14px;
    }
    .login-card .form-control {
        height: 50px;
        padding: 11px 44px;
        font-size: 14px;
    }
    .input-wrap > i {
        left: 15px;
        font-size: 16px;
    }
    .forgot-row {
        margin: -2px 0 18px;
    }
    .forgot-row a {
        font-size: 13px;
    }
    .login-submit {
        min-height: 50px;
        border-color: transparent;
        background: linear-gradient(90deg, #ff9858 0%, #ff6f2f 100%);
        box-shadow: 0 8px 18px rgba(255, 111, 47, 0.24);
        font-size: 15px;
    }
    .login-submit:hover,
    .login-submit:focus {
        border-color: transparent;
        background: linear-gradient(90deg, #f88843 0%, #e95f20 100%);
    }
    .powered-ribbon {
        border-top-color: #e8b8a5;
        background: #f8e9e2;
        color: var(--siic-maroon);
    }
    .login-card.auth-card-compact {
        top: auto;
        min-height: auto;
        margin-top: -42px !important;
        padding: 22px 20px 20px;
    }
    .auth-card-compact .auth-back-link {
        margin-bottom: 10px;
        font-size: 12px;
    }
    .auth-card-compact .auth-badge-icon {
        display: flex;
        width: 38px;
        height: 38px;
        margin: 0 auto 8px;
        border-radius: 11px;
        font-size: 16px;
    }
    .auth-card-compact h2 {
        margin-bottom: 5px;
        font-size: 23px;
    }
    .auth-card-compact .login-subtitle {
        margin-bottom: 16px;
        font-size: 11px;
    }
    .auth-card-compact .auth-info-box {
        gap: 8px;
        margin-bottom: 14px;
        padding: 9px 11px;
        border-color: #f2c7b4;
        background: #fff8f4;
        font-size: 11px;
        line-height: 1.4;
    }
    .auth-card-compact .auth-footer-prompt {
        margin-top: 14px;
        font-size: 13px;
    }
}

@media (max-width: 575px) and (max-height: 700px) {
    .siic-login-panel {
        gap: 0;
        padding-top: 0 !important;
        padding-bottom: 42px !important;
    }
    .mobile-login-hero {
        min-height: 150px;
        padding-top: 10px;
        padding-bottom: 45px;
    }
    .mobile-login-logo {
        width: min(78vw, 290px);
        padding: 0;
    }
    .login-card {
        margin-top: -34px !important;
        padding: 16px 18px;
    }
    .login-card.auth-card-compact {
        margin-top: -34px !important;
        padding: 13px 16px;
    }
    .auth-card-compact .auth-back-link {
        margin-bottom: 6px;
    }
    .auth-card-compact .auth-badge-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 5px;
        font-size: 14px;
    }
    .auth-card-compact h2 {
        font-size: 20px;
    }
    .auth-card-compact .login-subtitle {
        margin-bottom: 10px;
    }
    .auth-card-compact .auth-info-box {
        margin-bottom: 10px;
        padding: 7px 9px;
    }
    .auth-card-compact .auth-footer-prompt {
        margin-top: 9px;
    }
    .login-card h2 {
        margin-bottom: 12px;
        font-size: 22px;
    }
    .login-card .form-group {
        margin-bottom: 11px;
    }
    .login-card .form-control {
        height: 44px;
        min-height: 44px;
    }
    .forgot-row {
        margin-bottom: 12px;
    }
    .login-submit {
        min-height: 44px;
    }
}

/* Mobile login logo switcher:
   - logo-black  → phone only  (≤575px)
   - logo-white  → all others  */
.mobile-login-logo .logo-black { display: none; }
.mobile-login-logo .logo-white { display: block; }

@media (max-width: 575px) {
    .mobile-login-logo .logo-black { display: block; }
    .mobile-login-logo .logo-white { display: none; }
}
