@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap');

/* === Base === */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
}

/* === Main Body === */
.main-body, .main-dashboard {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

/* === Sign In Wrapper === */
.main-signin-wrapper-index {
    background-image: url('/assets/img/bg.jpg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: top left;
    padding: 20px;
    display: flex;
    min-height: 100vh;
    justify-content: flex-end;
    align-items: center;
}

/* === Custom Image Background === */
.custom-image.light-theme {
    background-position: top left;
    background-size: 100% 100%;
    background-attachment: fixed;
}

/* === Card Theme Override === */
.login-shell {
    width: 100%;
    max-width: 405px;
    margin-right: 20px;
}

.login-card {
    background: #ffffff;
    border: 1px solid #d9e1ef;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(25, 45, 84, 0.12);
    overflow: hidden;
}

.login-section {
    padding: 16px 18px;
}

    .login-section + .login-section {
        border-top: 1px solid #edf1f7;
    }

.login-section-logo {
    text-align: center;
}

.login-logo {
    width: auto;
    max-width: 100%;
    height: 52px;
}

.login-section-title {
    padding-top: 14px;
    padding-bottom: 14px;
    text-align: center;
    background: #f5f7fb;
}

.login-title {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
}

.login-subtitle {
    margin: 8px 0 0;
    color: #5e6678;
    font-size: 0.82rem;
}

.login-section-form {
    padding-top: 14px;
}

    .login-section-form .form-group {
        margin-bottom: 6px;
    }

.compact-input {
    flex-wrap: nowrap;
    align-items: stretch;
}

.compact-label {
    min-width: 96px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 8px;
    font-size: 0.8rem;
    color: #31405a;
    background: #ffffff;
    border: 1px solid #d6ddeb;
    border-right: 0;
    border-radius: 6px 0 0 6px;
}

.compact-field {
    height: 32px;
    font-size: 0.82rem;
    padding: 0 10px;
    border: 1px solid #d6ddeb;
    border-radius: 0 6px 6px 0;
    background: #f7f9fe;
    color: #1e2f4f;
}

    .compact-field:focus {
        background: #fff;
        border-color: #3560c7;
        box-shadow: 0 0 0 0.2rem rgba(53, 96, 199, 0.15);
    }

.login-button {
    height: 34px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
}

.login-section-footer {
    padding: 12px 16px;
    text-align: center;
    background: #f5f7fb;
}

.login-footer-text {
    color: #5a6070;
    font-size: 0.84rem;
}

/* === Text Complete (theme color) === */
.text-complete {
    color: #3560c7;
}

/* === Button Main Primary === */
.btn-main-primary {
    color: #fff;
    background-color: #3560c7;
    border-color: #3560c7;
}

    .btn-main-primary:hover {
        color: #fff;
        background-color: #2d52ab;
        border-color: #2d52ab;
    }

    .btn-main-primary:focus, .btn-main-primary.focus {
        box-shadow: 0 0 0 0.2rem rgba(77, 121, 245, 0.5);
    }

    .btn-main-primary.disabled, .btn-main-primary:disabled {
        color: #fff;
        background-color: #3560c7;
        border-color: #3560c7;
    }

    .btn-main-primary:not(:disabled):not(.disabled):active,
    .btn-main-primary:not(:disabled):not(.disabled).active,
    .show > .btn-main-primary.dropdown-toggle {
        color: #fff;
        background-color: #2d52ab;
        border-color: #2d52ab;
    }

        .btn-main-primary:not(:disabled):not(.disabled):active:focus,
        .btn-main-primary:not(:disabled):not(.disabled).active:focus,
        .show > .btn-main-primary.dropdown-toggle:focus {
            box-shadow: 0 0 0 0.2rem rgba(77, 121, 245, 0.5);
        }

@media (max-width: 767.98px) {
    .main-signin-wrapper-index {
        padding: 16px 18px 32px 18px;
        justify-content: center;
        align-items: flex-end;
    }

    .login-shell {
        max-width: 100%;
        margin-right: 0;
        margin-top: 14px;
    }

    .login-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .login-logo {
        height: 46px;
    }

    .login-title {
        font-size: 1.05rem;
        line-height: 1.25;
    }

    .login-subtitle {
        font-size: 0.72rem;
    }

    .compact-input {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .compact-label {
        min-width: 82px;
        height: 30px;
        font-size: 0.76rem;
        border-right: 0;
        border-bottom: 1px solid #d6ddeb;
        border-radius: 6px 0 0 6px;
        justify-content: flex-start;
    }

    .compact-field {
        height: 30px;
        font-size: 0.78rem;
        padding: 0 8px;
        border-radius: 0 6px 6px 0;
        text-align: left;
    }

    .login-button {
        height: 32px;
        font-size: 0.8rem;
    }

    .login-footer-text {
        font-size: 0.78rem;
    }
}
