.login-shell {
    height: 100vh;
    min-height: 100vh;
    display: flex;
    background: #f6f8fc;
    overflow: hidden;
}

.login-shell-media {
    flex: 0 0 30%;
    max-width: 30%;
    height: 100vh;
}

.login-shell-media-image {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    object-fit: cover;
    object-position: center;
    display: block;
}

.login-shell-content {
    flex: 0 0 70%;
    max-width: 70%;
    height: 100vh;
    display: flex;
}

.authentication-wrapper.authentication-basic.container-p-y {
    min-height: 100vh;
    height: 100vh;
    width: 100%;
    padding-top: 1rem !important;
    padding-bottom: 2.5rem !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    display: flex;
    align-items: center !important;
    justify-content: center;
    box-sizing: border-box;
}

.login-footer {
    background-color: #0c6bdb;
    color: white;
    padding: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 26px;
    display: flex;
    align-items: center;
    box-shadow: 0 -4px 12px rgba(12, 107, 219, 0.14);
}

.login-footer .container {
    width: 100%;
    max-width: none;
    padding-left: 1rem;
    padding-right: 1rem;
}

.login-footer p {
    font-size: 10px !important;
    line-height: 1.2;
}

.login-wrapper-panel {
    width: min(100%, 440px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    transform: translateY(-36px);
}

.login-logo-crop {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 0 16px;
}

.login-logo-image {
    width: 235px;
    max-width: 100%;
    height: auto;
    display: block;
}

.login-card-panel {
    width: 440px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
    overflow: hidden;
    color-scheme: light;
    top: 0;
    transform: none !important;
}

.login-card-body-panel {
    padding: 1.45rem 1.35rem 1.25rem;
}

.logo-title {
    margin-bottom: 1rem !important;
    text-align: center;
    color: #4b5563;
    font-size: 1.18rem;
    font-weight: 700;
    padding: 0;
}

.login-card-panel .form-label {
    margin-bottom: 0.38rem;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
}

.login-card-panel .form-control,
.login-card-panel .form-select,
.login-card-panel .input-group-text {
    min-height: 40px;
    border-color: #e5e7eb;
    font-size: 0.86rem;
    background-color: #fff;
    box-shadow: none !important;
}

.login-card-panel .form-control::placeholder {
    color: #c0c6d1;
}

.login-card-panel .form-control:focus,
.login-card-panel .form-select:focus,
.login-card-panel .input-group-text {
    background: #fff;
    color: #6b7280;
    border-color: #dfe3eb;
    box-shadow: none !important;
}

.login-card-panel .form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: #6b7280;
    color-scheme: light;
}

.login-card-panel .form-select option {
    color: #374151;
    background-color: #fff;
}

.login-card-panel .form-select option[disabled] {
    color: #9ca3af;
}

.login-partner-select {
    position: relative;
    width: 100%;
}

.login-partner-trigger {
    width: 100%;
    min-height: 40px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    border-radius: 0.375rem;
    padding: 0.38rem 2rem 0.38rem 0.7rem;
    font-size: 0.86rem;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    box-shadow: none;
}

.login-partner-trigger:focus {
    outline: none;
    border-color: #dfe3eb;
}

.login-partner-trigger.is-placeholder {
    color: #9ca3af;
}

.login-partner-trigger-icon {
    width: 0.65rem;
    height: 0.65rem;
    border-right: 1.8px solid #9ca3af;
    border-bottom: 1.8px solid #9ca3af;
    transform: rotate(45deg);
    margin-top: -0.2rem;
    flex: 0 0 auto;
}

.login-partner-select.is-open .login-partner-trigger-icon {
    transform: rotate(225deg);
    margin-top: 0.2rem;
}

.login-partner-options {
    position: absolute;
    top: calc(100% + 0.3rem);
    left: 0;
    right: 0;
    display: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
    overflow: hidden;
    z-index: 30;
    max-height: 220px;
    overflow-y: auto;
}

.login-partner-select.is-open .login-partner-options {
    display: block;
}

.login-partner-option {
    width: 100%;
    border: 0;
    background: #fff;
    color: #374151;
    text-align: left;
    font-size: 0.78rem;
    padding: 0.58rem 0.7rem;
    line-height: 1.35;
}

.login-partner-option:hover,
.login-partner-option:focus {
    background: #f3f4f6;
    outline: none;
}

.login-partner-option.is-selected {
    background: #eef2ff;
    color: #190072;
    font-weight: 600;
}

.login-partner-empty {
    padding: 0.7rem 0.8rem;
    color: #9ca3af;
    font-size: 0.85rem;
}

.login-card-panel .mb-3 {
    margin-bottom: 0.9rem !important;
}

.login-secondary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.15rem 0 0.85rem;
}

.login-remember-option {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    color: #6b7280;
    font-size: 0.72rem;
    cursor: pointer;
}

.login-remember-option input {
    margin: 0;
}

.login-forgot-password {
    margin: 0;
    color: #6b7280;
    text-align: right;
    font-size: 0.72rem;
    line-height: 1.2;
    white-space: nowrap;
}

.login-primary-action {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.login-submit-btn {
    width: 100%;
    min-height: 40px;
    padding: 0.38rem 0.8rem;
    background-color: #0c6bdb;
    border: none;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 600;
}

.login-submit-btn:hover,
.login-submit-btn:focus,
.login-submit-btn:active {
    background-color: #0b60c4 !important;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(20 20 20 / 18%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

@media (max-width: 767.98px) {
    .login-shell {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }

    .login-shell-media {
        display: none;
    }

    .login-shell-content {
        flex: 1 1 auto;
        max-width: 100%;
        height: auto;
        min-height: 100vh;
    }

    .authentication-wrapper.authentication-basic.container-p-y {
        min-height: auto;
        height: auto;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        align-items: flex-start !important;
        justify-content: center !important;
    }

    .login-wrapper-panel {
        width: 100%;
        margin: 0 auto;
        gap: 24px;
        transform: none;
    }

    .login-logo-image {
        width: 210px;
        max-width: 82%;
    }

    .login-card-panel {
        width: 100%;
        max-width: 100%;
    }

    .login-card-body-panel {
        padding: 1.45rem 1rem 1.2rem;
    }

    .logo-title {
        font-size: 1.1rem;
    }

    .login-secondary-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}
