/* =========================================================
   SNIPE-IT CUSTOM LOGIN PAGE
   ========================================================= */


/* =========================================================
   PAGE RESET
   ========================================================= */

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
}


/*
 * Prevent Snipe-IT / AdminLTE's default content
 * wrappers from adding spacing to our login page.
 */

.custom-login-form {
    width: 100%;
    margin: 0;
    padding: 0;
}


/* =========================================================
   MAIN SPLIT SCREEN
   ========================================================= */

.custom-login-page {
    display: flex !important;

    flex-direction: row !important;

    width: 100% !important;
    min-width: 100% !important;

    min-height: 100vh !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box;
}


/* =========================================================
   LEFT SIDE
   ========================================================= */

.custom-login-left {
    flex: 0 0 50% !important;

    width: 50% !important;
    max-width: 50% !important;

    min-height: 100vh;

    background:
        linear-gradient(
            135deg,
            #0b2a4a 0%,
            #071d3d 100%
        );

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 60px;

    box-sizing: border-box;
}


.custom-login-branding {
    width: 100%;
    max-width: 650px;

    margin: 0 auto;

    text-align: center;

    color: #ffffff;
}


/* =========================================================
   SCREENSHOT
   ========================================================= */

.custom-login-screenshot-wrapper {
    display: block;

    width: 100%;
    max-width: 650px;

    margin: 0 auto 35px auto;

    padding: 16px;

    box-sizing: border-box;

    background: rgba(255, 255, 255, 0.06);

    border: 1px solid rgba(255, 255, 255, 0.15);

    border-radius: 16px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.25);
}


.custom-login-screenshot {
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto;

    margin: 0;

    border-radius: 10px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3);
}


/* =========================================================
   LEFT SIDE TEXT
   ========================================================= */

.custom-login-description {
    width: 100%;
}


.custom-login-description h1 {
    margin: 0 0 15px 0;

    color: #ffffff;

    font-size: 38px;

    font-weight: 700;

    line-height: 1.2;
}


.custom-login-description p {
    margin: 0;

    color: rgba(255, 255, 255, 0.85);

    font-size: 17px;

    line-height: 1.7;
}


/* =========================================================
   RIGHT SIDE
   ========================================================= */

.custom-login-right {
    flex: 0 0 50% !important;

    width: 50% !important;
    max-width: 50% !important;

    min-height: 100vh;

    background: #ffffff;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 60px;

    box-sizing: border-box;

    overflow-y: auto;
}


/* =========================================================
   LOGIN PANEL
   ========================================================= */

.custom-login-panel {
    display: block;

    width: 100% !important;

    max-width: 500px !important;

    min-width: 0;

    margin: 0 auto;

    box-sizing: border-box;
}


/* =========================================================
   LOGIN HEADING
   ========================================================= */

.custom-login-heading {
    display: block;

    width: 100%;

    margin: 0 0 40px 0;

    padding: 0;
}


.custom-login-heading h1 {
    display: block;

    width: 100%;

    margin: 0 0 12px 0;

    padding: 0;

    color: #10243e;

    font-size: 38px;

    font-weight: 700;

    line-height: 1.2;
}


.custom-login-heading p {
    display: block;

    width: 100%;

    margin: 0;

    padding: 0;

    color: #718096;

    font-size: 16px;

    line-height: 1.5;
}


/* =========================================================
   SNIPE-IT NOTIFICATIONS
   ========================================================= */

/*
 * This is the important fix.
 *
 * The notification must occupy the full width of the
 * login panel and must NOT become part of a Bootstrap
 * column layout.
 */

.custom-login-panel > .alert,
.custom-login-panel > .alert-danger,
.custom-login-panel > .alert-success,
.custom-login-panel > .alert-warning,
.custom-login-panel > .alert-info {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    min-width: 0 !important;

    margin: 0 0 25px 0 !important;

    padding: 15px 18px !important;

    box-sizing: border-box !important;

    border-radius: 6px;
}


/*
 * If Snipe-IT's notifications are wrapped in a
 * Bootstrap row/column, force those wrappers to use
 * the full login-panel width.
 */

.custom-login-panel > .row {
    display: block !important;

    width: 100% !important;

    margin: 0 !important;
}


.custom-login-panel > .row > [class*="col-"] {
    display: block !important;

    width: 100% !important;

    max-width: 100% !important;

    float: none !important;

    margin: 0 !important;

    padding-left: 0 !important;
    padding-right: 0 !important;
}


/* =========================================================
   LOGIN NOTE
   ========================================================= */

.custom-login-note {
    display: block;

    width: 100%;

    margin: 0 0 25px 0;

    padding: 15px 18px;

    box-sizing: border-box;

    border-radius: 8px;

    background: #f0f8ff;

    border: 1px solid #d7eaf8;

    color: #3b4a5a;
}


/* =========================================================
   LOGIN FIELDS
   ========================================================= */

.custom-login-fields {
    display: block;

    width: 100%;

    min-width: 0;

    margin: 0;

    padding: 0;

    border: 0;
}


.custom-form-group {
    display: block;

    width: 100%;

    margin: 0 0 25px 0;

    padding: 0;
}


.custom-form-label {
    display: block;

    width: 100%;

    margin: 0 0 9px 0;

    padding: 0;

    color: #172b4d;

    font-size: 14px;

    font-weight: 600;

    line-height: 1.4;

    white-space: nowrap;
}


/* =========================================================
   INPUT WRAPPER
   ========================================================= */

.custom-input-wrapper {
    position: relative;

    display: block;

    width: 100%;

    min-width: 0;

    box-sizing: border-box;
}


.custom-input-icon {
    position: absolute;

    left: 17px;

    top: 50%;

    transform: translateY(-50%);

    color: #718096;

    font-size: 16px;

    z-index: 2;

    pointer-events: none;
}


/* =========================================================
   INPUT
   ========================================================= */

.custom-form-control {
    display: block;

    width: 100% !important;

    max-width: 100% !important;

    min-width: 0;

    height: 58px;

    margin: 0;

    padding: 0 18px 0 48px;

    box-sizing: border-box;

    border: 1px solid #d9e0e7;

    border-radius: 10px;

    background: #ffffff;

    color: #172b4d;

    font-size: 16px;

    line-height: 58px;

    outline: none;

    float: none !important;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.custom-form-control::placeholder {
    color: #9aa6b2;
}


.custom-form-control:focus {
    border-color: #00b686;

    box-shadow:
        0 0 0 3px rgba(0, 182, 134, 0.12);
}


/* Password input */

.custom-password-input {
    padding-right: 55px;
}


/* =========================================================
   PASSWORD TOGGLE
   ========================================================= */

.custom-password-toggle {
    position: absolute;

    top: 50%;
    right: 15px;

    width: 30px;
    height: 30px;

    transform: translateY(-50%);

    display: flex;

    align-items: center;
    justify-content: center;

    color: #718096;

    cursor: pointer;

    z-index: 5;
}


.custom-password-toggle:hover {
    color: #00a878;
}


.custom-password-toggle .toggle-password {
    cursor: pointer;
}


/* =========================================================
   ERROR MESSAGES
   ========================================================= */

.custom-error-message {
    display: block !important;

    width: 100% !important;

    margin: 7px 0 0 0 !important;

    padding: 0 !important;

    color: #d9534f;

    font-size: 13px;

    line-height: 1.5;

    text-align: left;

    white-space: normal;
}


.custom-form-error .custom-form-control {
    border-color: #d9534f;
}


/* =========================================================
   REMEMBER ME + FORGOT PASSWORD
   ========================================================= */

.custom-login-options {
    display: flex !important;

    flex-direction: row !important;

    align-items: center;

    justify-content: space-between;

    width: 100%;

    min-width: 0;

    margin: 0 0 30px 0;

    padding: 0;

    box-sizing: border-box;
}


.custom-remember {
    display: flex;

    flex: 0 1 auto;

    align-items: center;

    gap: 8px;

    margin: 0;

    padding: 0;

    color: #394b5f;

    font-size: 14px;

    font-weight: 500;

    line-height: 1.4;

    white-space: nowrap;

    cursor: pointer;
}


.custom-remember input {
    width: 17px;
    height: 17px;

    margin: 0;

    padding: 0;

    accent-color: #00b686;

    cursor: pointer;
}


.custom-forgot-password {
    flex: 0 0 auto;

    color: #00a878;

    font-size: 14px;

    font-weight: 600;

    line-height: 1.4;

    text-decoration: none;

    white-space: nowrap;
}


.custom-forgot-password:hover {
    color: #008c67;

    text-decoration: none;
}


/* =========================================================
   SAML LOGIN
   ========================================================= */

.custom-saml-login {
    display: block;

    width: 100%;

    margin: 0 0 25px 0;

    text-align: right;
}


.custom-saml-login a {
    color: #00a878;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.custom-login-submit {
    display: block;

    width: 100%;

    margin: 0;

    padding: 0;
}


.custom-login-button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100% !important;

    max-width: 100% !important;

    height: 58px;

    margin: 0;

    padding: 0 20px;

    box-sizing: border-box;

    border: 0;

    border-radius: 10px;

    background: #00b686;

    color: #ffffff;

    font-size: 16px;

    font-weight: 600;

    line-height: 1;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.1s ease,
        box-shadow 0.2s ease;
}


.custom-login-button:hover {
    background: #009f75;

    color: #ffffff;

    text-decoration: none;

    box-shadow:
        0 5px 15px rgba(0, 182, 134, 0.25);
}


.custom-login-button:active {
    transform: translateY(1px);
}


/* =========================================================
   GOOGLE LOGIN
   ========================================================= */

.custom-google-login {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    height: 52px;

    margin: 0 0 25px 0;

    box-sizing: border-box;

    border: 1px solid #d9e0e7;

    border-radius: 10px;

    background: #ffffff;

    color: #394b5f;

    font-size: 15px;

    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}


.custom-google-login i {
    margin-right: 10px;
}


.custom-google-login:hover {
    background: #f7f9fb;

    border-color: #c6d0da;

    color: #172b4d;

    text-decoration: none;
}


/* =========================================================
   DIVIDER
   ========================================================= */

.custom-login-divider {
    display: flex;

    align-items: center;

    width: 100%;

    margin: 25px 0;

    color: #9aa6b2;

    font-size: 12px;

    text-align: center;
}


.custom-login-divider::before,
.custom-login-divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: #e4e8ec;
}


.custom-login-divider span {
    padding: 0 15px;
}


/* =========================================================
   VERSION
   ========================================================= */

.custom-login-version {
    width: 100%;

    margin-top: 60px;

    color: #8a96a3;

    font-size: 13px;

    text-align: center;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 992px) {

    .custom-login-left {
        padding: 40px;
    }

    .custom-login-right {
        padding: 40px;
    }

    .custom-login-description h1 {
        font-size: 32px;
    }

}


@media (max-width: 768px) {

    .custom-login-page {
        flex-direction: column !important;
    }


    .custom-login-left,
    .custom-login-right {
        flex: 0 0 100% !important;

        width: 100% !important;
        max-width: 100% !important;

        min-height: auto;
    }


    .custom-login-left {
        padding: 50px 25px;
    }


    .custom-login-right {
        padding: 50px 25px;
    }


    .custom-login-screenshot-wrapper {
        max-width: 600px;
    }


    .custom-login-description h1 {
        font-size: 30px;
    }


    .custom-login-description p {
        font-size: 15px;
    }

}


@media (max-width: 480px) {

    .custom-login-left {
        padding: 35px 20px;
    }


    .custom-login-right {
        padding: 40px 20px;
    }


    .custom-login-heading h1 {
        font-size: 30px;
    }


    .custom-login-description h1 {
        font-size: 26px;
    }


    .custom-login-options {
        flex-direction: column !important;

        align-items: flex-start;

        gap: 15px;
    }

}