body.login-container {
    background: #ffffff !important;
    color: #202124;
}

body.login-container .navbar.navbar-inverse {
    display: none;
}

body.login-container .page-container,
body.login-container .page-content,
body.login-container .content-wrapper {
    min-height: 100vh;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff;
}

.cosic-login-modern {
    font-family: "Roboto", Arial, sans-serif;
}

.cosic-login--page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(440px, 1fr) minmax(440px, 1fr);
    background: #ffffff;
}

.cosic-login-side {
    position: relative;
    min-height: 100vh;
    background: #2f559b;
    color: #ffffff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    isolation: isolate;
}

.cosic-login-brand,
.cosic-login-side-copy,
.cosic-login-method-cards {
    position: relative;
    z-index: 1;
}

.cosic-login-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cosic-login-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
}

.cosic-login-brand-mark img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.cosic-login-brand-kicker {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.74);
}

.cosic-login-brand-title {
    display: block;
    margin-top: 4px;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.cosic-login-side-copy {
    max-width: 520px;
}

.cosic-login-side-copy small {
    display: block;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.72);
}

.cosic-login-side-copy h1 {
    max-width: 620px;
    margin: 0;
    color: #ffffff;
    font-size: 36px;
    line-height: 1.27;
    font-weight: 700;
}

.cosic-login-side-copy p {
    max-width: 540px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.83);
    font-size: 16px;
    line-height: 1.75;
}

.cosic-login-method-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 184px));
    gap: 12px;
}

.cosic-login-method-card {
    min-height: 90px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.10);
    padding: 18px 16px;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

a.cosic-login-method-card:hover,
a.cosic-login-method-card:focus {
    color: #ffffff;
    outline: none;
    text-decoration: none;
    transform: translateY(-1px);
}

.cosic-login-method-card i {
    display: block;
    margin-bottom: 16px;
    font-size: 20px;
}

.cosic-login-method-card strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.cosic-login-method-card small {
    display: block;
    max-width: 100%;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.cosic-login-panel {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.cosic-login-box {
    width: 100%;
    max-width: 400px;
}

.cosic-login-lock {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: #2f559b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.cosic-login-modal-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.cosic-login-modal-logo img {
    display: block;
    width: 168px;
    max-width: 70%;
    height: auto;
}

.cosic-login-box h2 {
    margin: 0;
    color: #202124;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
}

.cosic-login-subtitle {
    margin: 12px 0 28px;
    color: #5f6368;
    font-size: 14px;
    line-height: 1.55;
}

.cosic-login-alert {
    margin-bottom: 18px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.45;
}

.cosic-login-alert-danger {
    color: #a4262c;
    background: #fdecee;
    border: 1px solid #f4b8bd;
}

.cosic-login-alert-warning {
    color: #8a5b00;
    background: #fff4d6;
    border: 1px solid #f1d48b;
}

.cosic-login-alert-success {
    color: #0f6f3a;
    background: #ecfdf3;
    border: 1px solid #a7f3c7;
}

.cosic-login-label {
    display: block;
    margin-bottom: 10px;
    color: #3c4043;
    font-size: 14px;
    font-weight: 600;
}

.cosic-login-method-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    padding: 4px;
    border: 1px solid #a8acb7;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.18);
}

.cosic-login-method {
    height: 44px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #303134;
    font-weight: 600;
    line-height: 1;
    outline: none;
}

.cosic-login-method.is-active {
    background: #2f559b;
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(47, 85, 155, 0.24);
}

.cosic-login-field {
    margin-top: 24px;
}

.cosic-input-shell {
    position: relative;
}

.cosic-input-shell > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a7abb5;
    font-size: 17px;
    z-index: 2;
}

.cosic-input-shell .form-control {
    height: 48px;
    border: 1px solid #a8acb7;
    border-radius: 5px;
    padding-left: 40px;
    padding-right: 42px;
    color: #202124;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.16);
}

.cosic-input-shell .form-control:focus {
    border-color: #2f7cf6;
    box-shadow: 0 0 0 2px rgba(47, 124, 246, 0.20);
}

.cosic-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #6f7480;
    width: 28px;
    height: 28px;
    padding: 0;
    z-index: 3;
}

.cosic-secure-password:not(.is-password-visible) {
    -webkit-text-security: disc;
    text-security: disc;
}

.cosic-login-remember {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 22px;
    color: #5f6368;
    font-weight: 400;
    cursor: pointer;
    user-select: none;
}

.cosic-login-remember input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cosic-login-remember-switch {
    position: relative;
    flex: 0 0 auto;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #c4c9d4;
    box-shadow: inset 0 0 0 1px rgba(32, 33, 36, 0.10);
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.cosic-login-remember-switch::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(32, 33, 36, 0.28);
    transition: transform 0.18s ease;
}

.cosic-login-remember input:checked + .cosic-login-remember-switch {
    background: #3b82f6;
    box-shadow: inset 0 0 0 1px rgba(47, 114, 223, 0.25);
}

.cosic-login-remember input:checked + .cosic-login-remember-switch::after {
    transform: translateX(20px);
}

.cosic-login-remember input:focus + .cosic-login-remember-switch {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.20);
}

.cosic-login-remember-text {
    line-height: 1.35;
    margin: 0;
}

.cosic-login-submit {
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 7px;
    background: #3b82f6;
    color: #ffffff;
    font-weight: 600;
}

.cosic-login-submit:hover,
.cosic-login-submit:focus {
    background: #2f72df;
    color: #ffffff;
}

.cosic-login-forgot-password {
    display: block;
    margin-top: 14px;
    color: #2f559b;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.cosic-login-forgot-password:hover,
.cosic-login-forgot-password:focus {
    color: #1f3f78;
    text-decoration: underline;
}

.cosic-password-recovery {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 32px 20px;
    background: #f7f9fc;
}

.cosic-password-recovery-card {
    width: 100%;
    max-width: 430px;
    padding: 30px;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(32, 33, 36, 0.12);
}

.cosic-password-recovery-brand {
    align-items: center;
    display: inline-flex;
    gap: 10px;
    margin-bottom: 24px;
    color: #202124;
    font-weight: 700;
    text-decoration: none;
}

.cosic-password-recovery-brand:hover,
.cosic-password-recovery-brand:focus {
    color: #202124;
    text-decoration: none;
}

.cosic-password-recovery-brand img {
    display: block;
    height: 32px;
    width: 32px;
}

.cosic-password-recovery-card h2 {
    margin: 0;
    color: #202124;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

.cosic-password-recovery-copy,
.cosic-password-recovery-card > p {
    margin: 12px 0 24px;
    color: #5f6368;
    font-size: 14px;
    line-height: 1.55;
}

.cosic-code-inputs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.cosic-code-digit {
    width: 100%;
    height: 54px;
    border: 1px solid #a8acb7;
    border-radius: 8px;
    background: #ffffff;
    color: #202124;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.16);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cosic-code-digit:focus {
    border-color: #2f7cf6;
    box-shadow: 0 0 0 3px rgba(47, 124, 246, 0.18);
}

.cosic-code-digit::selection {
    background: rgba(47, 124, 246, 0.18);
}

.cosic-password-recovery-submit {
    align-items: center;
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    margin-top: 22px;
    border: 0;
    border-radius: 7px;
    background: #2f559b;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.cosic-password-recovery-submit:hover,
.cosic-password-recovery-submit:focus {
    background: #244780;
    color: #ffffff;
    text-decoration: none;
}

.cosic-password-recovery-link {
    display: block;
    margin-top: 14px;
    color: #2f559b;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.cosic-password-recovery-link:hover,
.cosic-password-recovery-link:focus {
    color: #1f3f78;
    text-decoration: underline;
}

.cosic-password-recovery-status {
    align-items: center;
    display: flex;
    height: 48px;
    justify-content: center;
    width: 48px;
    margin-bottom: 18px;
    border-radius: 50%;
    font-size: 21px;
}

.cosic-password-recovery-status.is-success {
    background: #dcfce7;
    color: #15803d;
}

.cosic-login--modal {
    padding: 0;
}

.cosic-login--modal .cosic-login-panel {
    min-height: auto;
    padding: 28px 0 34px;
    align-items: flex-start;
}

.cosic-login--modal .cosic-login-box {
    max-width: none;
}

.cosic-login--modal .cosic-login-lock {
    margin-bottom: 22px;
}

.cosic-login--modal .cosic-login-submit {
    margin-bottom: 4px;
}

.cosic-login-auth-inline {
    width: 100%;
}

.cosic-login-auth-inline .cosic-login-panel {
    display: block;
    padding: 0;
}

.cosic-login-auth-inline .cosic-login-box {
    max-width: none;
}

.cosic-login-auth-inline .cosic-login-field {
    margin-top: 14px;
}

.cosic-login-auth-inline .cosic-login-subtitle {
    margin-bottom: 14px;
}

@media (max-width: 1100px) {
    .cosic-login--page {
        grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1fr);
    }

    .cosic-login-side-copy h1 {
        font-size: 32px;
    }

    .cosic-login-method-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .cosic-login--page {
        grid-template-columns: 1fr;
    }

    .cosic-login-side {
        min-height: auto;
        padding: 32px;
        gap: 48px;
    }

    .cosic-login-panel {
        min-height: auto;
        padding: 40px 24px;
    }
}

@media (max-width: 640px) {
    .cosic-login--page {
        display: block;
    }

    .cosic-login-side {
        display: none;
    }

    .cosic-login-panel {
        min-height: 100vh;
        align-items: center;
    }

    .cosic-login-method {
        font-size: 12px;
    }

    .cosic-code-inputs {
        gap: 6px;
    }

    .cosic-code-digit {
        height: 48px;
        font-size: 20px;
    }
}
